iris: Pin surface state buffers after possibly updating the clear color
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 1 Feb 2021 12:42:18 +0000 (04:42 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Feb 2021 18:32:29 +0000 (18:32 +0000)
commitb9133e48a6c8ee151649a97d44f1f36c54d62de6
tree7386e425cd19f5740c929b47355be0239cde030f
parent60573b443b84a081e5d7330e71096fc5f642f45b
iris: Pin surface state buffers after possibly updating the clear color

On Gen8, updating the clear color will end up allocating new
SURFACE_STATE entries.  These might end up living in a different BO
than the original copies, which means that we have to pin _after_
updating the clear color, not before.

Found by inspection.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9257>
src/gallium/drivers/iris/iris_state.c