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>
This commit is contained in:
Danylo Piliaiev 2021-04-06 14:36:47 +03:00 committed by Marge Bot
parent d918bbfa1c
commit 1e33b6a32b
2 changed files with 2 additions and 1 deletions

View File

@ -384,7 +384,7 @@ tu_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
.shaderCullDistance = true,
.shaderFloat64 = false,
.shaderInt64 = false,
.shaderInt16 = false,
.shaderInt16 = true,
.sparseBinding = false,
.variableMultisampleRate = true,
.inheritedQueries = true,

View File

@ -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,
},