radv: enable VK_AMD_shader_trinary_minmax extension
authorDaniel Schürmann <daniel.schuermann@campus.tu-berlin.de>
Thu, 8 Mar 2018 22:13:43 +0000 (23:13 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 28 Mar 2018 23:29:39 +0000 (01:29 +0200)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_extensions.py
src/amd/vulkan/radv_shader.c

index a16988d48c5d71049819506318fa99b87e02b08f..cbb02f138a13bb9a544a337d75082a90effceec3 100644 (file)
@@ -96,6 +96,7 @@ EXTENSIONS = [
     Extension('VK_AMD_gcn_shader',                        1, True),
     Extension('VK_AMD_rasterization_order',               1, 'device->rad_info.chip_class >= VI && device->rad_info.max_se >= 2'),
     Extension('VK_AMD_shader_info',                       1, True),
+    Extension('VK_AMD_shader_trinary_minmax',             1, True),
 ]
 
 class VkVersion:
index c6935805c79ddb3f1dc9f48ac76e820ccedd17d1..f150a20e3b37c4547bc3ee16b8b8cae505641b60 100644 (file)
@@ -216,6 +216,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
                                .subgroup_basic = true,
                                .variable_pointers = true,
                                .gcn_shader = true,
+                               .trinary_minmax = true,
                        },
                };
                entry_point = spirv_to_nir(spirv, module->size / 4,