mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
nir/lower_flrp: Check and set shader_info::flrp_lowered
No shader-db or fossil-db changes on any Intel platform. v2: Return early if lowering_mask is zero. If the first call to nir_lower_flrp has a lowering_mask of zero, later calls with non-zero masks would not do any lowering. lp_bld_nir.c has this issue. Suggested-by: Alyssa Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12526>
This commit is contained in:
parent
341e2d3283
commit
4bbc29373a
1 changed files with 5 additions and 0 deletions
|
|
@ -599,6 +599,9 @@ nir_lower_flrp(nir_shader *shader,
|
|||
unsigned lowering_mask,
|
||||
bool always_precise)
|
||||
{
|
||||
if (shader->info.flrp_lowered || lowering_mask == 0)
|
||||
return false;
|
||||
|
||||
struct u_vector dead_flrp;
|
||||
|
||||
if (!u_vector_init_pow2(&dead_flrp, 8, sizeof(struct nir_alu_instr *)))
|
||||
|
|
@ -619,5 +622,7 @@ nir_lower_flrp(nir_shader *shader,
|
|||
|
||||
u_vector_finish(&dead_flrp);
|
||||
|
||||
shader->info.flrp_lowered = true;
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue