iris: Pin the clear color BO in use_image()
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 29 Oct 2022 03:58:13 +0000 (20:58 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Dec 2022 13:01:27 +0000 (13:01 +0000)
commit880fab60a79129e28e8453acb61b4067ddb85cb6
tree73bf438fc73f5c8aa009be788d3440e2f5178461
parent699e60681a3a9915102340fbba9791a654fbfd21
iris: Pin the clear color BO in use_image()

Images with the RC_CCS modifier store the clear color in a separate BO,
which we also need to pin when using an image view.

Most images store the clear color in the same BO so it works anyway.

Thanks to Nanley Chery for catching this!

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19060>
src/gallium/drivers/iris/iris_state.c