radv/aco: enable shaderInt16 on GFX6-GFX7

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5226>
This commit is contained in:
Samuel Pitoiset
2020-05-07 10:54:12 +02:00
committed by Marge Bot
parent b3aee3aa23
commit be4dd6abd1
2 changed files with 5 additions and 5 deletions

View File

@@ -942,7 +942,7 @@ void radv_GetPhysicalDeviceFeatures(
.shaderCullDistance = true, .shaderCullDistance = true,
.shaderFloat64 = true, .shaderFloat64 = true,
.shaderInt64 = true, .shaderInt64 = true,
.shaderInt16 = !pdevice->use_aco || pdevice->rad_info.chip_class >= GFX8, .shaderInt16 = true,
.sparseBinding = true, .sparseBinding = true,
.variableMultisampleRate = true, .variableMultisampleRate = true,
.shaderResourceMinLod = true, .shaderResourceMinLod = true,

View File

@@ -351,7 +351,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
} }
} }
} }
bool int8_int16_enable = !device->physical_device->use_aco || bool int8_enable = !device->physical_device->use_aco ||
device->physical_device->rad_info.chip_class >= GFX8; device->physical_device->rad_info.chip_class >= GFX8;
const struct spirv_to_nir_options spirv_options = { const struct spirv_to_nir_options spirv_options = {
.lower_ubo_ssbo_access_to_offsets = true, .lower_ubo_ssbo_access_to_offsets = true,
@@ -377,8 +377,8 @@ radv_shader_compile_to_nir(struct radv_device *device,
.image_ms_array = true, .image_ms_array = true,
.image_read_without_format = true, .image_read_without_format = true,
.image_write_without_format = true, .image_write_without_format = true,
.int8 = int8_int16_enable, .int8 = int8_enable,
.int16 = int8_int16_enable, .int16 = true,
.int64 = true, .int64 = true,
.int64_atomics = true, .int64_atomics = true,
.min_lod = true, .min_lod = true,