radeonsi: emit framebuffer state after allocating cmask
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 21 Sep 2023 07:42:53 +0000 (09:42 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 21 Sep 2023 16:12:06 +0000 (16:12 +0000)
commit60a7c9688cfb184f45ce7bcc132dc2da286ef95e
treebe8709d47484cf7ccb4366cbe2cfafc93cd04744
parent0c1b6af1b689fd0eb407618ac9c763e48fc0b814
radeonsi: emit framebuffer state after allocating cmask

tex->cmask_base_address_reg and tex->cb_color_info are used in
si_emit_framebuffer_state so we have to re-emit the state when
they're modified.

It's not done in si_alloc_separate_cmask because it cannot
update framebuffer.dirty_cbufs.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9830
Cc: mesa-stable
Reviewed-by: Yogesh Mohan Marimuthu <yogesh.mohanmarimuthu@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25317>
src/gallium/drivers/radeonsi/si_clear.c