mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
radeonsi: also enable tgsi_to_nir caching for compute shaders
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4993>
This commit is contained in:
parent
45e69e7d11
commit
1152af2eda
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ static void *si_create_compute_state(struct pipe_context *ctx, const struct pipe
|
||||||
if (cso->ir_type != PIPE_SHADER_IR_NATIVE) {
|
if (cso->ir_type != PIPE_SHADER_IR_NATIVE) {
|
||||||
if (cso->ir_type == PIPE_SHADER_IR_TGSI) {
|
if (cso->ir_type == PIPE_SHADER_IR_TGSI) {
|
||||||
program->ir_type = PIPE_SHADER_IR_NIR;
|
program->ir_type = PIPE_SHADER_IR_NIR;
|
||||||
sel->nir = tgsi_to_nir(cso->prog, ctx->screen, false);
|
sel->nir = tgsi_to_nir(cso->prog, ctx->screen, true);
|
||||||
} else {
|
} else {
|
||||||
assert(cso->ir_type == PIPE_SHADER_IR_NIR);
|
assert(cso->ir_type == PIPE_SHADER_IR_NIR);
|
||||||
sel->nir = (struct nir_shader *)cso->prog;
|
sel->nir = (struct nir_shader *)cso->prog;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue