nir/serialize: fix serialization of system values

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6545>
This commit is contained in:
Karol Herbst
2020-08-29 21:58:37 +02:00
committed by Jason Ekstrand
parent 5c45eaf9b3
commit b9927c8c8d
+1
View File
@@ -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;