diff options
author | Rohan Garg <rohan.garg@intel.com> | 2024-02-14 16:59:24 +0100 |
---|---|---|
committer | Rohan Garg <rohan.garg@intel.com> | 2024-02-14 17:07:20 +0100 |
commit | e2ddbfbf7a5d8046c15c1e814d109d6899becec2 (patch) | |
tree | 3a2ac5b9ea6b27842d9741b5f7e39361927c098d | |
parent | 90eae30bcb84d54dc871ddbb8355f729cf8fa900 (diff) |
anv: enable VK_KHR_fragment_shader_barycentricreview/fragment_shader_barycentric
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
-rw-r--r-- | src/intel/vulkan/anv_device.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 1710d6a86dd..819115c2c09 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -248,6 +248,7 @@ get_device_extensions(const struct anv_physical_device *device, .KHR_external_semaphore = true, .KHR_external_semaphore_fd = true, .KHR_format_feature_flags2 = true, + .KHR_fragment_shader_barycentric = true, .KHR_fragment_shading_rate = device->info.ver >= 11, .KHR_get_memory_requirements2 = true, .KHR_global_priority = device->max_context_priority >= @@ -896,6 +897,9 @@ get_features(const struct anv_physical_device *pdevice, /* VK_KHR_shader_expect_assume */ .shaderExpectAssume = true, + + /* VK_KHR_fragment_shader_barycentric */ + .fragmentShaderBarycentric = true, }; /* The new DOOM and Wolfenstein games require depthBounds without @@ -1527,6 +1531,11 @@ get_properties(const struct anv_physical_device *pdevice, props->lineSubPixelPrecisionBits = 4; } + /* VK_KHR_fragment_shader_barycentric */ + { + props->triStripVertexOrderIndependentOfProvokingVertex = false; + } + /* VK_EXT_mesh_shader */ { /* Bounded by the maximum representable size in |