radv/aco: enable shaderInt8 and VK_KHR_shader_float16_int8 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-06-04 11:33:28 +02:00
committed by Marge Bot
parent be4dd6abd1
commit 64f2d45c3b
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -984,7 +984,7 @@ radv_get_physical_device_features_1_2(struct radv_physical_device *pdevice,
f->shaderBufferInt64Atomics = LLVM_VERSION_MAJOR >= 9 || pdevice->use_aco;
f->shaderSharedInt64Atomics = LLVM_VERSION_MAJOR >= 9 || pdevice->use_aco;
f->shaderFloat16 = pdevice->rad_info.has_packed_math_16bit && !pdevice->use_aco;
f->shaderInt8 = !pdevice->use_aco || pdevice->rad_info.chip_class >= GFX8;
f->shaderInt8 = true;
f->descriptorIndexing = true;
f->shaderInputAttachmentArrayDynamicIndexing = true;
+1 -1
View File
@@ -98,7 +98,7 @@ EXTENSIONS = [
Extension('VK_KHR_shader_clock', 1, True),
Extension('VK_KHR_shader_draw_parameters', 1, True),
Extension('VK_KHR_shader_float_controls', 1, True),
Extension('VK_KHR_shader_float16_int8', 1, '!device->use_aco || device->rad_info.chip_class >= GFX8'),
Extension('VK_KHR_shader_float16_int8', 1, True),
Extension('VK_KHR_shader_non_semantic_info', 1, True),
Extension('VK_KHR_shader_subgroup_extended_types', 1, True),
Extension('VK_KHR_spirv_1_4', 1, True),
+1 -3
View File
@@ -351,8 +351,6 @@ radv_shader_compile_to_nir(struct radv_device *device,
}
}
}
bool int8_enable = !device->physical_device->use_aco ||
device->physical_device->rad_info.chip_class >= GFX8;
const struct spirv_to_nir_options spirv_options = {
.lower_ubo_ssbo_access_to_offsets = true,
.caps = {
@@ -377,7 +375,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
.image_ms_array = true,
.image_read_without_format = true,
.image_write_without_format = true,
.int8 = int8_enable,
.int8 = true,
.int16 = true,
.int64 = true,
.int64_atomics = true,