From: Iago Toral Quiroga Date: Tue, 22 Jan 2019 10:26:03 +0000 (+0100) Subject: anv/pipeline: support Float16 and Int8 SPIR-V capabilities in gen8+ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a5d44b71307085f56cb8511fe154ebfdfd42831;p=mesa.git anv/pipeline: support Float16 and Int8 SPIR-V capabilities in gen8+ 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 (v1) --- diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index b0fef540e45..e403b07500e 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -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,