[v2,45/53] anv/pipeline: support Float16 and Int8 capabilities in gen8+

Submitted by Iago Toral Quiroga on Dec. 19, 2018, 11:51 a.m.

Details

Message ID 20181219115121.20815-46-itoral@igalia.com
State New
Headers show
Series "intel: VK_KHR_shader_float16_int8 implementation" ( rev: 3 ) in Mesa

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga Dec. 19, 2018, 11:51 a.m.
v2:
 - Merge Float16 and Int8 in a single patch

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 6db9945e0d4..c303ba321c3 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -147,6 +147,8 @@  anv_shader_compile_to_nir(struct anv_pipeline *pipeline,
          .variable_pointers = true,
          .storage_16bit = device->instance->physicalDevice.info.gen >= 8,
          .int16 = device->instance->physicalDevice.info.gen >= 8,
+         .float16 = device->instance->physicalDevice.info.gen >= 8,
+         .int8 = device->instance->physicalDevice.info.gen >= 8,
          .shader_viewport_index_layer = true,
          .subgroup_arithmetic = true,
          .subgroup_basic = true,