[Mesa-dev] [PATCH v3 34/42] anv/pipeline: support Float16 and Int8 capabilities in gen8+

Iago Toral Quiroga itoral at igalia.com
Tue Jan 15 13:54:06 UTC 2019


v2:
 - Merge Float16 and Int8 in a single patch (Jason)

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net> (v1)
---
 src/intel/vulkan/anv_pipeline.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 899160746d4..663d1c77fa5 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -136,8 +136,10 @@ anv_shader_compile_to_nir(struct anv_device *device,
       .caps = {
          .device_group = true,
          .draw_parameters = true,
+         .float16 = device->instance->physicalDevice.info.gen >= 8,
          .float64 = device->instance->physicalDevice.info.gen >= 8,
          .image_write_without_format = true,
+         .int8 = device->instance->physicalDevice.info.gen >= 8,
          .int16 = device->instance->physicalDevice.info.gen >= 8,
          .int64 = device->instance->physicalDevice.info.gen >= 8,
          .min_lod = true,
-- 
2.17.1



More information about the mesa-dev mailing list