anv: enable VK_KHR_shader_draw_parameters
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 29 Jan 2017 04:14:54 +0000 (04:14 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 2 Feb 2017 01:33:16 +0000 (01:33 +0000)
Enables 10 tests from:

   dEQP-VK.draw.shader_draw_parameters.*

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_pipeline.c

index 3403dc126aa5441bdf1be765a31d15fc6837f138..91ee67f053d5174ae739b3fea16a6e4518230dc4 100644 (file)
@@ -272,6 +272,10 @@ static const VkExtensionProperties device_extensions[] = {
       .extensionName = VK_KHR_MAINTENANCE1_EXTENSION_NAME,
       .specVersion = 1,
    },
+   {
+      .extensionName = VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME,
+      .specVersion = 1,
+   }
 };
 
 static void *
index 2060c6d2f60079fccf7b31e7d31aa408065b3f37..ca3823c2b6637443ca5c2cdfff7fafa8ebfa7c53 100644 (file)
@@ -127,6 +127,7 @@ anv_shader_compile_to_nir(struct anv_device *device,
    const struct nir_spirv_supported_extensions supported_ext = {
       .float64 = device->instance->physicalDevice.info.gen >= 8,
       .tessellation = true,
+      .draw_parameters = true,
    };
 
    nir_function *entry_point =