mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 22:18:13 +02:00
radv: only apply the MRT output NaN fixup to non-meta shaders
We only want this workaround to be applied for game shaders.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4163
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9048>
(cherry picked from commit f502bdf1ab)
This commit is contained in:
parent
fe83bea355
commit
d03634d438
2 changed files with 3 additions and 2 deletions
|
|
@ -1300,7 +1300,7 @@
|
|||
"description": "radv: only apply the MRT output NaN fixup to non-meta shaders",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1330,7 +1330,8 @@ shader_variant_compile(struct radv_device *device,
|
|||
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->use_ngg_streamout = device->physical_device->use_ngg_streamout;
|
||||
options->enable_mrt_output_nan_fixup = device->instance->enable_mrt_output_nan_fixup;
|
||||
options->enable_mrt_output_nan_fixup = module && !module->nir &&
|
||||
device->instance->enable_mrt_output_nan_fixup;
|
||||
options->adjust_frag_coord_z = device->adjust_frag_coord_z;
|
||||
options->debug.func = radv_compiler_debug;
|
||||
options->debug.private_data = &debug_data;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue