[v3,34/42] anv/pipeline: support Float16 and Int8 capabilities in gen8+

Submitted by Iago Toral Quiroga on Jan. 15, 2019, 1:54 p.m.

Details

Message ID 20190115135414.2313-35-itoral@igalia.com
State New
Headers show
Series "intel: VK_KHR_shader_float16_int8 implementation" ( rev: 5 4 ) in Mesa

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga Jan. 15, 2019, 1:54 p.m.
v2:
 - Merge Float16 and Int8 in a single patch (Jason)

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

Patch hide | download patch | download mbox

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,