From: Karol Herbst Date: Sat, 29 Aug 2020 19:58:37 +0000 (+0200) Subject: nir/serialize: fix serialization of system values X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9927c8c8d0c105699306a68773c015930ff9509;p=mesa.git nir/serialize: fix serialization of system values Reviewed-by: Jason Ekstrand Part-of: --- 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;