radeonsi: fix an assertion failure with register shadowing
authorMarek Olšák <marek.olsak@amd.com>
Mon, 28 Feb 2022 20:37:48 +0000 (15:37 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Mar 2022 22:30:24 +0000 (22:30 +0000)
commita02dd17cb36efe9bc2ff2d675357988ded914a02
tree168ce6bd66c90993623b402abf1c326c8116659a
parent0f96948dfab3b9d7cbda1d8cac1308e976a35eff
radeonsi: fix an assertion failure with register shadowing

The problem is that dirty_states must be 0 for any state that is NULL
in "queued". This code was flagging dirty_states for such states because
it was only looking at "emitted". It should have been looking at "queued".

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15209>
src/gallium/drivers/radeonsi/si_pm4.c