diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 2cc06a5c5d4..dd6186b1409 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -395,7 +395,7 @@ int r600_pipe_shader_create(struct pipe_context *ctx, shader->shader.bc.ncf, shader->shader.bc.nstack); - if (!sel->nir_blob && sel->nir) { + if (!sel->nir_blob && sel->nir && sel->ir_type != PIPE_SHADER_IR_TGSI) { struct blob blob; blob_init(&blob); nir_serialize(&blob, sel->nir, false);