From 1e33b6a32bf31b2c881ebcf1c228d0274b0ec392 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Tue, 6 Apr 2021 14:36:47 +0300 Subject: [PATCH] turnip: enable shaderInt16 We should have everything to enable it. 16b integer division is lowered by nir_lower_idiv. Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/vulkan/tu_device.c | 2 +- src/freedreno/vulkan/tu_shader.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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, },