radv/aco: enable shaderInt16 on GFX6-GFX7
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 7 May 2020 08:54:12 +0000 (10:54 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 9 Jun 2020 21:25:38 +0000 (21:25 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5226>

src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_shader.c

index 62e37a6e2aa24190d8780462b8fc98ea862dbadf..5db1456a4da698f011f0f2fb625d19dc0e7660d4 100644 (file)
@@ -942,7 +942,7 @@ void radv_GetPhysicalDeviceFeatures(
                .shaderCullDistance                       = true,
                .shaderFloat64                            = true,
                .shaderInt64                              = true,
-               .shaderInt16                              = !pdevice->use_aco || pdevice->rad_info.chip_class >= GFX8,
+               .shaderInt16                              = true,
                .sparseBinding                            = true,
                .variableMultisampleRate                  = true,
                .shaderResourceMinLod                     = true,
index 55ff73799ef5c0a4c7b25338e2fb1f980335fc18..2ae60fe7d5eaa4201707d6ea917ed7938035d071 100644 (file)
@@ -351,8 +351,8 @@ radv_shader_compile_to_nir(struct radv_device *device,
                                }
                        }
                }
-               bool int8_int16_enable = !device->physical_device->use_aco ||
-                                        device->physical_device->rad_info.chip_class >= GFX8;
+               bool int8_enable = !device->physical_device->use_aco ||
+                                  device->physical_device->rad_info.chip_class >= GFX8;
                const struct spirv_to_nir_options spirv_options = {
                        .lower_ubo_ssbo_access_to_offsets = true,
                        .caps = {
@@ -377,8 +377,8 @@ radv_shader_compile_to_nir(struct radv_device *device,
                                .image_ms_array = true,
                                .image_read_without_format = true,
                                .image_write_without_format = true,
-                               .int8 = int8_int16_enable,
-                               .int16 = int8_int16_enable,
+                               .int8 = int8_enable,
+                               .int16 = true,
                                .int64 = true,
                                .int64_atomics = true,
                                .min_lod = true,