radv: enable shaderInt8 on SI and CIK
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 Apr 2019 15:42:20 +0000 (17:42 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 16 Apr 2019 06:22:54 +0000 (08:22 +0200)
No CTS failures.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_extensions.py

index 62ee32e..1f77dca 100644 (file)
@@ -902,9 +902,8 @@ void radv_GetPhysicalDeviceFeatures2(
                case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR: {
                        VkPhysicalDeviceFloat16Int8FeaturesKHR *features =
                                (VkPhysicalDeviceFloat16Int8FeaturesKHR*)ext;
-                       bool enabled = pdevice->rad_info.chip_class >= VI;
-                       features->shaderFloat16 = enabled && HAVE_LLVM >= 0x0800;
-                       features->shaderInt8 = enabled;
+                       features->shaderFloat16 = pdevice->rad_info.chip_class >= VI && HAVE_LLVM >= 0x0800;
+                       features->shaderInt8 = true;
                        break;
                }
                default:
index 3d0a0c4..13fe391 100644 (file)
@@ -82,7 +82,7 @@ EXTENSIONS = [
     Extension('VK_KHR_relaxed_block_layout',              1, True),
     Extension('VK_KHR_sampler_mirror_clamp_to_edge',      1, True),
     Extension('VK_KHR_shader_draw_parameters',            1, True),
-    Extension('VK_KHR_shader_float16_int8',               1, 'device->rad_info.chip_class >= VI'),
+    Extension('VK_KHR_shader_float16_int8',               1, True),
     Extension('VK_KHR_storage_buffer_storage_class',      1, True),
     Extension('VK_KHR_surface',                          25, 'RADV_HAS_SURFACE'),
     Extension('VK_KHR_surface_protected_capabilities',    1, 'RADV_HAS_SURFACE'),