mesa/st: check for tc on context create

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
This commit is contained in:
Mike Blumenkrantz 2025-07-21 13:42:20 -04:00 committed by Marge Bot
parent 425c1116de
commit 097d953492
2 changed files with 3 additions and 0 deletions

View file

@ -67,6 +67,7 @@
#include "util/u_memory.h"
#include "util/hash_table.h"
#include "util/thread_sched.h"
#include "util/u_threaded_context.h"
#include "cso_cache/cso_context.h"
#include "compiler/glsl/glsl_parser_extras.h"
#include "nir.h"
@ -466,6 +467,7 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
cso_flags = 0;
break;
}
st->is_threaded_context = pipe->draw_vbo == tc_draw_vbo;
st->cso_context = cso_create_context(pipe, cso_flags);
ctx->cso_context = st->cso_context;

View file

@ -212,6 +212,7 @@ struct st_context
bool validate_all_dirty_states;
bool can_null_texture;
bool is_threaded_context;
/* driver supports scissored clears */
bool can_scissor_clear;