anv/pipeline: support Float16 and Int8 SPIR-V capabilities in gen8+
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 22 Jan 2019 10:26:03 +0000 (11:26 +0100)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 18 Apr 2019 11:23:03 +0000 (13:23 +0200)
v2:
  - Merge Float16 and Int8 capabilities into a single patch (Jason)
  - Merged patch that enabled SPIR-V front-end checks for these caps
    (except for Int8, which was already merged)

v3:
 - Keep capabilities sorted (Jason)

v4:
- SpvCapabilityFloat16 support already added in master (Juan)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (v1)
src/intel/vulkan/anv_pipeline.c

index b0fef540e45b334a4fa6f614aec7457437f90373..e403b07500e5db2d1c0535301b487b96d75c4077 100644 (file)
@@ -140,9 +140,11 @@ anv_shader_compile_to_nir(struct anv_device *device,
          .derivative_group = true,
          .device_group = true,
          .draw_parameters = true,
+         .float16 = pdevice->info.gen >= 8,
          .float64 = pdevice->info.gen >= 8,
          .geometry_streams = true,
          .image_write_without_format = true,
+         .int8 = pdevice->info.gen >= 8,
          .int16 = pdevice->info.gen >= 8,
          .int64 = pdevice->info.gen >= 8,
          .min_lod = true,