gfx-rs / portability

Vulkan Portability Implementation
Mozilla Public License 2.0
383 stars 25 forks source link

Fixes for gfx HEAD, update Cargo.lock, and add gl backend option #185

Closed aloucks closed 5 years ago

aloucks commented 5 years ago

Updated Cargo.lock and some minor changes to get portability compiling again using the latest gfx master.

With these changes I was able to get vulkaninfo to run on a GPU-less VM using Mesa.

$ RUST_BACKTRACE=1 VK_ICD_FILENAMES=portability-linux-debug.json vulkaninfo > ~/vulkaninfo.txt

==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.106

Instance Extensions:
====================
Instance Extensions count = 4
    VK_EXT_debug_report                 : extension revision  9
    VK_EXT_debug_utils                  : extension revision  1
    VK_KHR_get_physical_device_properties2: extension revision  1
    VK_KHR_surface                      : extension revision 25
Layers: count = 15
=======

...

Device Properties and Extensions :
==================================
GPU0
VkPhysicalDeviceProperties:
===========================
    apiVersion     = 0x400042  (1.0.66)
    driverVersion  = 1 (0x1)
    vendorID       = 0x0000
    deviceID       = 0x0000
    deviceType     = CPU
    deviceName     = Mesa OffScreen

...

Full output:

https://gist.github.com/aloucks/1a9acfb51adba4bb598ee6de0a213d82

It's probably a long way from being usable, but it would be nice to use portability for unit testing in CI jobs.

See also: https://github.com/gfx-rs/gfx/pull/2791 for updates to the gl backend.

bors[bot] commented 5 years ago

Build succeeded