From 3d5c4db23edf08fa166009d689ca8e8e23208c6b Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 9 Apr 2021 18:12:21 +0200 Subject: [PATCH] radeonsi: use SI_CONTEXT_FLAG_AUX when recreating the aux context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: e6a0f243ea1 ("radeonsi: update pipe_screen::num_contexts") Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 5a98b6316dd..18972a00cf3 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -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); }