Igalia / vkrunner

A shader script tester for Vulkan. Moved to https://gitlab.freedesktop.org/mesa/vkrunner
Other
43 stars 14 forks source link

Report 'skip' on instance creation failure. #69

Closed bpeel closed 4 years ago

bpeel commented 4 years ago

(This is a v2 of MR#67)

This causes vkrunner tests to report 'skip' rather than 'fail' when run on a platform which doesn't support Vulkan and has no drivers. The tests aren't running and failing - they're simply not executing.

For example, a CI system might deploy piglit and vkrunner on all systems, but only some machines support Vulkan. Similarly, Piglit builds all OpenGL tests, but if the GPU doesn't support the required API, then tests report 'skip'.

v2: Only report skip if the error code is VK_ERROR_INCOMPATIBLE_DRIVER. (Neil Roberts)