radeonsi: add context shader state for mesh shader

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37505>
This commit is contained in:
Qiang Yu
2025-04-14 17:06:55 +08:00
committed by Marge Bot
parent 24d7c9a2a8
commit 8a3ef188c2
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -524,6 +524,7 @@ void si_begin_new_gfx_cs(struct si_context *ctx, bool first_cs)
si_add_all_descriptors_to_bo_list(ctx);
si_shader_pointers_mark_dirty(ctx);
ctx->cs_shader_state.emitted_program = NULL;
ctx->ts_shader_state.emitted_program = NULL;
/* The CS initialization should be emitted before everything else. */
if (ctx->cs_preamble_state) {
+2
View File
@@ -1094,6 +1094,8 @@ struct si_context {
struct si_shader_ctx_state shaders[SI_NUM_GRAPHICS_SHADERS];
};
struct si_cs_shader_state cs_shader_state;
struct si_cs_shader_state ts_shader_state;
struct si_shader_ctx_state ms_shader_state;
bool compute_ping_pong_launch;
/* if current tcs set by user */
bool is_user_tcs;