mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 23:50:11 +01:00
iris: avoid issues with undefined clip distance
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9797
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25177>
(cherry picked from commit d6d73aae4f)
This commit is contained in:
parent
32ff84911b
commit
f35d00a75a
2 changed files with 9 additions and 7 deletions
|
|
@ -1284,7 +1284,7 @@
|
|||
"description": "iris: avoid issues with undefined clip distance",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1307,12 +1307,14 @@ iris_compile_vs(struct iris_screen *screen,
|
|||
|
||||
if (key->vue.nr_userclip_plane_consts) {
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(nir);
|
||||
nir_lower_clip_vs(nir, (1 << key->vue.nr_userclip_plane_consts) - 1,
|
||||
true, false, NULL);
|
||||
nir_lower_io_to_temporaries(nir, impl, true, false);
|
||||
nir_lower_global_vars_to_local(nir);
|
||||
nir_lower_vars_to_ssa(nir);
|
||||
nir_shader_gather_info(nir, impl);
|
||||
/* Check if variables were found. */
|
||||
if (nir_lower_clip_vs(nir, (1 << key->vue.nr_userclip_plane_consts) - 1,
|
||||
true, false, NULL)) {
|
||||
nir_lower_io_to_temporaries(nir, impl, true, false);
|
||||
nir_lower_global_vars_to_local(nir);
|
||||
nir_lower_vars_to_ssa(nir);
|
||||
nir_shader_gather_info(nir, impl);
|
||||
}
|
||||
}
|
||||
|
||||
prog_data->use_alt_mode = nir->info.use_legacy_math_rules;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue