[Mesa-dev] [PATCH v2 28/29] anv: enable support for SPV_KHR_shader_float_controls capabilities

Samuel Iglesias Gonsálvez siglesias at igalia.com
Tue Dec 18 10:34:23 UTC 2018


Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
---
 src/intel/vulkan/anv_pipeline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index c303ba321c3..2781b8f0ee0 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -145,6 +145,7 @@ anv_shader_compile_to_nir(struct anv_pipeline *pipeline,
          .min_lod = true,
          .multiview = true,
          .variable_pointers = true,
+         .shader_float_controls = device->instance->physicalDevice.info.gen >= 8,
          .storage_16bit = device->instance->physicalDevice.info.gen >= 8,
          .int16 = device->instance->physicalDevice.info.gen >= 8,
          .float16 = device->instance->physicalDevice.info.gen >= 8,
-- 
2.19.1



More information about the mesa-dev mailing list