anv: don't advertise vk conformance on GPUs that aren't conformant

This sets the conformance version to 0.0.0.0 for GPUs that have
incomplete support for vulkan, so that it's easier to check if vulkan is
fully supported by a GPU at runtime for applications/libraries.

    $ vulkaninfo|grep conf
    MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
        conformanceVersion = 0.0.0.0

Signed-off-by: Clayton Craft <clayton@craftyguy.net>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13275>
This commit is contained in:
Clayton Craft
2021-10-13 16:06:51 -07:00
committed by Marge Bot
parent 2d47f3640f
commit b2ef7e6d6b
2 changed files with 25 additions and 6 deletions

View File

@@ -880,6 +880,8 @@ struct anv_physical_device {
struct brw_compiler * compiler;
struct isl_device isl_dev;
struct intel_perf_config * perf;
/* True if hardware support is incomplete/alpha */
bool is_alpha;
/*
* Number of commands required to implement a performance query begin +
* end.