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:

committed by
Marge Bot

parent
301f57a17c
commit
0abf4af443
@@ -525,11 +525,7 @@ st_create_nir_shader(struct st_context *st, struct pipe_shader_state *state)
|
||||
struct pipe_compute_state cs = {0};
|
||||
cs.ir_type = state->type;
|
||||
cs.static_shared_mem = info.shared_size;
|
||||
|
||||
if (state->type == PIPE_SHADER_IR_NIR)
|
||||
cs.prog = state->ir.nir;
|
||||
else
|
||||
cs.prog = state->tokens;
|
||||
|
||||
shader = pipe->create_compute_state(pipe, &cs);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user