freedreno/batch: Add helper to set fb state
authorRob Clark <robdclark@chromium.org>
Sat, 22 Apr 2023 19:32:21 +0000 (12:32 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 10 May 2023 15:36:02 +0000 (15:36 +0000)
commitc29e9dc0543e1c6ef8dc9268fe3ca25451199e99
tree9c929466956feb210c3646142f7d7086548fb708
parent9af6f2574165bdba5eeea8179842723efcc6fae3
freedreno/batch: Add helper to set fb state

Stop open-coding and add a helper.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22895>
src/gallium/drivers/freedreno/freedreno_batch.c
src/gallium/drivers/freedreno/freedreno_batch.h
src/gallium/drivers/freedreno/freedreno_batch_cache.c
src/gallium/drivers/freedreno/freedreno_context.c