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 8989ec3553fbf78bcf98765612b786bbde53a045..af7754bea3efa6f493a48c76bb2c1e7f274f92b2 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 51e0b7d65fc530709c83ea62c72204083fb9254a..c59b783f4afb8e42e3d262b27811e79b681be900 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,