mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 13:50:11 +01:00
Merge branch 'staging/DDKOPSRC-1375' into 'main'
pvr: Fix missing sample mask test instructions See merge request mesa/mesa!39040
This commit is contained in:
commit
db1c765618
1 changed files with 2 additions and 1 deletions
|
|
@ -560,7 +560,7 @@ static bool lower_isp_fb(nir_builder *b, struct pfo_state *state)
|
||||||
has_depth_feedback = true;
|
has_depth_feedback = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!state->has_discards) {
|
if (!state->has_sample_check) {
|
||||||
b->cursor = nir_after_instr(&state->last_discard_store->instr);
|
b->cursor = nir_after_instr(&state->last_discard_store->instr);
|
||||||
|
|
||||||
nir_def *smp_msk = nir_ishl(b, nir_imm_int(b, 1), nir_load_sample_id(b));
|
nir_def *smp_msk = nir_ishl(b, nir_imm_int(b, 1), nir_load_sample_id(b));
|
||||||
|
|
@ -572,6 +572,7 @@ static bool lower_isp_fb(nir_builder *b, struct pfo_state *state)
|
||||||
state->last_discard_store =
|
state->last_discard_store =
|
||||||
nir_build_store_reg(b, val, state->discard_cond_reg);
|
nir_build_store_reg(b, val, state->discard_cond_reg);
|
||||||
|
|
||||||
|
state->has_sample_check = true;
|
||||||
state->has_discards = true;
|
state->has_discards = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue