From c10aa0f7b27b51fc4ba6e7b4147b97ab7882514a Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 8 Apr 2026 14:11:18 +0100 Subject: [PATCH] radv/gfx11.7: enable float8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Reviewed-by: Marek Olšák Part-of: --- src/amd/common/nir/ac_nir.c | 2 +- src/amd/vulkan/radv_physical_device.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amd/common/nir/ac_nir.c b/src/amd/common/nir/ac_nir.c index 3860df8848a..c4606738d80 100644 --- a/src/amd/common/nir/ac_nir.c +++ b/src/amd/common/nir/ac_nir.c @@ -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 | diff --git a/src/amd/vulkan/radv_physical_device.c b/src/amd/vulkan/radv_physical_device.c index 142df08311a..8e9dc58b5f2 100644 --- a/src/amd/vulkan/radv_physical_device.c +++ b/src/amd/vulkan/radv_physical_device.c @@ -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;