From b9927c8c8d0c105699306a68773c015930ff9509 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 29 Aug 2020 21:58:37 +0200 Subject: [PATCH] nir/serialize: fix serialization of system values Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/nir/nir_serialize.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_serialize.c b/src/compiler/nir/nir_serialize.c index 33c740cf623..1d0b696db87 100644 --- a/src/compiler/nir/nir_serialize.c +++ b/src/compiler/nir/nir_serialize.c @@ -253,6 +253,7 @@ write_variable(write_ctx *ctx, const nir_variable *var) * which is typically after shaders are linked. */ if (ctx->strip && + data.mode != nir_var_system_value && data.mode != nir_var_shader_in && data.mode != nir_var_shader_out) data.location = 0; -- 2.30.2