diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-03-28 10:36:43 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-04-08 19:29:33 -0700 |
commit | 45a4129392c8acc07807ae2bd38f1869e797142e (patch) | |
tree | ec69419bc9a7285e481f5eb26000fbc3335838ca /src/intel/vulkan/anv_device.c | |
parent | bd73531677f45b4ab1bebb910ab2b0e24c349643 (diff) |
anv: Implement VK_NV_compute_shader_derivatives
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index b0a6e10cabc..9d4f93c910f 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1051,6 +1051,14 @@ void anv_GetPhysicalDeviceFeatures2( break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV: { + VkPhysicalDeviceComputeShaderDerivativesFeaturesNV *features = + (VkPhysicalDeviceComputeShaderDerivativesFeaturesNV *)ext; + features->computeDerivativeGroupQuads = true; + features->computeDerivativeGroupLinear = true; + break; + } + default: anv_debug_ignored_stype(ext->sType); break; |