mesa/st: collapse tgsi deadcode

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26272>
This commit is contained in:
Alyssa Rosenzweig
2023-11-19 12:27:04 -04:00
committed by Marge Bot
parent 301f57a17c
commit 0abf4af443

View File

@@ -525,11 +525,7 @@ st_create_nir_shader(struct st_context *st, struct pipe_shader_state *state)
struct pipe_compute_state cs = {0}; struct pipe_compute_state cs = {0};
cs.ir_type = state->type; cs.ir_type = state->type;
cs.static_shared_mem = info.shared_size; cs.static_shared_mem = info.shared_size;
cs.prog = state->ir.nir;
if (state->type == PIPE_SHADER_IR_NIR)
cs.prog = state->ir.nir;
else
cs.prog = state->tokens;
shader = pipe->create_compute_state(pipe, &cs); shader = pipe->create_compute_state(pipe, &cs);
break; break;