nir: update uses_demote flag in discard_to_demote pass
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 24 Mar 2020 14:58:59 +0000 (15:58 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 25 Mar 2020 07:19:33 +0000 (08:19 +0100)
commit84da4ded4b90d0d13e3d89d97160eead9d5c8886
tree4f3f92d7973bd88fcef2546089d8a75458e70fda
parentfc8432e6d6c1f76621e202c773a590fa99ded730
nir: update uses_demote flag in discard_to_demote pass

Otherwise the ctx.ac.postponed_kill will not be allocated.

Fixes: ce87da71e93 ("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>
src/compiler/nir/nir_lower_discard_to_demote.c