radeonsi: Enable tgsi to nir disk cache
Enable the tgsi to nir cache for radeonsi. Signed-off-by: Axel Davy <davyaxel0@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4993>
This commit is contained in:
@@ -2593,7 +2593,7 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
|
|||||||
sel->so = state->stream_output;
|
sel->so = state->stream_output;
|
||||||
|
|
||||||
if (state->type == PIPE_SHADER_IR_TGSI) {
|
if (state->type == PIPE_SHADER_IR_TGSI) {
|
||||||
sel->nir = tgsi_to_nir(state->tokens, ctx->screen, false);
|
sel->nir = tgsi_to_nir(state->tokens, ctx->screen, true);
|
||||||
} else {
|
} else {
|
||||||
assert(state->type == PIPE_SHADER_IR_NIR);
|
assert(state->type == PIPE_SHADER_IR_NIR);
|
||||||
sel->nir = state->ir.nir;
|
sel->nir = state->ir.nir;
|
||||||
|
Reference in New Issue
Block a user