Mesa (main): radv: drop the module reference for enable_mrt_output_nan_fixup

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 8 09:56:43 UTC 2022


Module: Mesa
Branch: main
Commit: 0835065260d634698a3ca67390b7ae73287a725a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0835065260d634698a3ca67390b7ae73287a725a

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr  6 12:25:33 2022 +0200

radv: drop the module reference for enable_mrt_output_nan_fixup

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15766>

---

 src/amd/vulkan/radv_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 60511631a2a..58ad7d076db 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -1964,7 +1964,7 @@ shader_compile(struct radv_device *device, struct vk_shader_module *module,
    options->address32_hi = device->physical_device->rad_info.address32_hi;
    options->has_ls_vgpr_init_bug = device->physical_device->rad_info.has_ls_vgpr_init_bug;
    options->enable_mrt_output_nan_fixup =
-      module && !is_meta_shader(module->nir) && options->key.ps.enable_mrt_output_nan_fixup;
+      !is_meta_shader(shaders[0]) && options->key.ps.enable_mrt_output_nan_fixup;
    options->debug.func = radv_compiler_debug;
    options->debug.private_data = &debug_data;
 



More information about the mesa-commit mailing list