mesa: Drop TGSI token handling

Nothing generates TGSI tokens in the frontend any more.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23114>
This commit is contained in:
Emma Anholt
2023-05-18 14:12:06 -07:00
committed by Marge Bot
parent 0034a26a40
commit c52d1acb42

View File

@@ -49,8 +49,6 @@
#include "pipe/p_defines.h"
#include "pipe/p_shader_tokens.h"
#include "draw/draw_context.h"
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_ureg.h"
#include "util/u_memory.h"
@@ -321,11 +319,6 @@ st_release_variants(struct st_context *st, struct gl_program *p)
p->variants = NULL;
if (p->state.tokens) {
ureg_free_tokens(p->state.tokens);
p->state.tokens = NULL;
}
/* Note: Any setup of ->ir.nir that has had pipe->create_*_state called on
* it has resulted in the driver taking ownership of the NIR. Those
* callers should be NULLing out the nir field in any pipe_shader_state
@@ -546,9 +539,6 @@ st_create_nir_shader(struct st_context *st, struct pipe_shader_state *state)
return NULL;
}
if (state->type == PIPE_SHADER_IR_TGSI)
tgsi_free_tokens(state->tokens);
return shader;
}