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 <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20355>
This commit is contained in:
Gert Wollny 2022-12-15 15:23:48 +01:00 committed by Marge Bot
parent a8b6b2367e
commit 4b89a8fd00

View file

@ -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);