From 4b89a8fd00501c8caaa76ff264009cfad393367a Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 15 Dec 2022 15:23:48 +0100 Subject: [PATCH] r600: don't try to serialized shaders translated from TGSI TTN seems to have a problem encoding vec4[4] correctly, so that serialization might fail. Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7891 Fixes: 5b205ef (r600: Store nir shaders serialized to save memory) Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/r600_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);