radeonsi: re-create the aux context in si_create_context
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 12 Apr 2021 06:03:41 +0000 (08:03 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 07:00:00 +0000 (07:00 +0000)
commit93183480fc06267d1ab676e3286e76ea422ac7df
treeda1be07a98e7b562c52610b1f06dcc062aebca6f
parent6938aa7534ae805b18fcdd66374b3586ad21bce9
radeonsi: re-create the aux context in si_create_context

If a GPU reset occurs, all contexts need to be recreated.
So instead of re-creating the aux context during the flush
of a normal context, we build a new one if we detect that
it needs to be updated.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10179>
src/gallium/drivers/radeonsi/si_pipe.c