radv: enable shaderInt16 capability
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 14 Sep 2018 10:52:40 +0000 (12:52 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Sep 2018 13:18:39 +0000 (15:18 +0200)
Not sure if this is all wired up. CTS does pass and the Tangrams
demo works fine on Vega. There are corruption issues on Polaris
but not sure if that related to 16-bit support.

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_shader.c

index 8989ec3..af7754b 100644 (file)
@@ -734,7 +734,7 @@ void radv_GetPhysicalDeviceFeatures(
                .shaderCullDistance                       = true,
                .shaderFloat64                            = true,
                .shaderInt64                              = true,
-               .shaderInt16                              = false,
+               .shaderInt16                              = true,
                .sparseBinding                            = true,
                .variableMultisampleRate                  = true,
                .inheritedQueries                         = true,
index 51e0b7d..c59b783 100644 (file)
@@ -210,6 +210,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
                                .image_write_without_format = true,
                                .tessellation = true,
                                .int64 = true,
+                               .int16 = true,
                                .multiview = true,
                                .subgroup_ballot = true,
                                .subgroup_basic = true,