radeonsi: use SI_CONTEXT_FLAG_AUX when recreating the aux context

Fixes: e6a0f243ea ("radeonsi: update pipe_screen::num_contexts")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10179>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-04-09 18:12:21 +02:00 committed by Marge Bot
parent 646c5db06f
commit 3d5c4db23e
1 changed files with 3 additions and 2 deletions

View File

@ -371,8 +371,9 @@ static enum pipe_reset_status si_get_reset_status(struct pipe_context *ctx)
sscreen->aux_context->destroy(sscreen->aux_context);
sscreen->aux_context = si_create_context(
&sscreen->b, (sscreen->options.aux_debug ? PIPE_CONTEXT_DEBUG : 0) |
(sscreen->info.has_graphics ? 0 : PIPE_CONTEXT_COMPUTE_ONLY));
&sscreen->b, SI_CONTEXT_FLAG_AUX |
(sscreen->options.aux_debug ? PIPE_CONTEXT_DEBUG : 0) |
(sscreen->info.has_graphics ? 0 : PIPE_CONTEXT_COMPUTE_ONLY));
sscreen->aux_context->set_log_context(sscreen->aux_context, aux_log);
simple_mtx_unlock(&sscreen->aux_context_lock);
}