diff options
author | Danylo Piliaiev <dpiliaiev@igalia.com> | 2021-04-06 14:36:47 +0300 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-04-20 20:32:20 +0000 |
commit | 1e33b6a32bf31b2c881ebcf1c228d0274b0ec392 (patch) | |
tree | 7e928c01e0dedcc01ec81e300c0c17fe68dfda0c | |
parent | d918bbfa1cedb38e71255632ca1e44ab3ad7c29d (diff) |
turnip: enable shaderInt16
We should have everything to enable it.
16b integer division is lowered by nir_lower_idiv.
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10054>
-rw-r--r-- | src/freedreno/vulkan/tu_device.c | 2 | ||||
-rw-r--r-- | src/freedreno/vulkan/tu_shader.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 6381cb370d7..399bf0bf4fe 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -384,7 +384,7 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice, .shaderCullDistance = true, .shaderFloat64 = false, .shaderInt64 = false, - .shaderInt16 = false, + .shaderInt16 = true, .sparseBinding = false, .variableMultisampleRate = true, .inheritedQueries = true, diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c index f6636cf2d03..ef9def776ee 100644 --- a/src/freedreno/vulkan/tu_shader.c +++ b/src/freedreno/vulkan/tu_shader.c @@ -75,6 +75,7 @@ tu_spirv_to_nir(struct tu_device *dev, .runtime_descriptor_array = true, .float_controls = true, .float16 = true, + .int16 = true, .storage_16bit = dev->physical_device->gpu_id >= 650, .demote_to_helper_invocation = true, }, |