mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
nir: update uses_demote flag in discard_to_demote pass
Otherwise the ctx.ac.postponed_kill will not be allocated.
Fixes: ce87da71e9 ("nir: add pass to lower discard() to demote()")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2662
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4301>
This commit is contained in:
parent
fc8432e6d6
commit
84da4ded4b
1 changed files with 2 additions and 0 deletions
|
|
@ -50,9 +50,11 @@ nir_lower_discard_to_demote(nir_shader *shader)
|
|||
switch (intrin->intrinsic) {
|
||||
case nir_intrinsic_discard:
|
||||
intrin->intrinsic = nir_intrinsic_demote;
|
||||
shader->info.fs.uses_demote = true;
|
||||
break;
|
||||
case nir_intrinsic_discard_if:
|
||||
intrin->intrinsic = nir_intrinsic_demote_if;
|
||||
shader->info.fs.uses_demote = true;
|
||||
break;
|
||||
case nir_intrinsic_load_helper_invocation:
|
||||
intrin->intrinsic = nir_intrinsic_is_helper_invocation;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue