radv/gfx11.7: enable float8

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40917>
This commit is contained in:
Rhys Perry 2026-04-08 14:11:18 +01:00 committed by Marge Bot
parent df9195ac34
commit c10aa0f7b2
2 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ void ac_nir_set_options(const struct ac_compiler_info *info, bool use_llvm,
options->has_msad = true;
options->has_shfr32 = true;
options->has_mul24_relaxed = true;
options->has_f2e4m3fn_satfn = !use_llvm && info->gfx_level >= GFX12;
options->has_f2e4m3fn_satfn = !use_llvm && info->gfx_level >= GFX11_7;
options->has_atomic_isub = true;
options->has_atomic_load_store = true;
options->lower_int64_options = nir_lower_imul64 | nir_lower_imul_high64 | nir_lower_imul_2x32_64 | nir_lower_divmod64 |

View file

@ -832,7 +832,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
.EXT_shader_atomic_float = true,
.EXT_shader_atomic_float2 = true,
.EXT_shader_demote_to_helper_invocation = true,
.EXT_shader_float8 = pdev->info.gfx_level >= GFX12 && !pdev->use_llvm,
.EXT_shader_float8 = pdev->info.gfx_level >= GFX11_7 && !pdev->use_llvm,
.EXT_shader_image_atomic_int64 = true,
.EXT_shader_module_identifier = true,
.EXT_shader_object = !pdev->use_llvm && !(instance->debug_flags & RADV_DEBUG_NO_ESO),
@ -3336,7 +3336,7 @@ fill_array_sizes_structs(const struct radv_physical_device *pdev, struct __vk_ou
*/
struct matrix_prop prop;
if (pdev->info.gfx_level >= GFX12) {
if (pdev->info.gfx_level >= GFX11_7) {
for (unsigned e5m2_a = 0; e5m2_a < 2; e5m2_a++) {
for (unsigned e5m2_b = 0; e5m2_b < 2; e5m2_b++) {
prop.saturate = false;