Mesa (master): turnip: enable shaderInt16
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 20 20:54:32 UTC 2021
Module: Mesa
Branch: master
Commit: 1e33b6a32bf31b2c881ebcf1c228d0274b0ec392
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e33b6a32bf31b2c881ebcf1c228d0274b0ec392
Author: Danylo Piliaiev <dpiliaiev at igalia.com>
Date: Tue Apr 6 14:36:47 2021 +0300
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 at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10054>
---
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,
},
More information about the mesa-commit
mailing list