diff options
author | Samuel Pitoiset <[email protected]> | 2018-09-14 12:52:40 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-09-17 15:18:39 +0200 |
commit | 08103c5f652b7f0a5fa85c6b7067cd08ec19444a (patch) | |
tree | b319c3b0b3d224df91a3f2f6be8dc041ebc828d6 | |
parent | cd76ce00780c277e04cef52fef10b0e9c714712b (diff) |
radv: enable shaderInt16 capability
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_device.c | 2 | ||||
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 8989ec3553f..af7754bea3e 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -734,7 +734,7 @@ void radv_GetPhysicalDeviceFeatures( .shaderCullDistance = true, .shaderFloat64 = true, .shaderInt64 = true, - .shaderInt16 = false, + .shaderInt16 = true, .sparseBinding = true, .variableMultisampleRate = true, .inheritedQueries = true, diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 51e0b7d65fc..c59b783f4af 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -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, |