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:
committed by
Jason Ekstrand
parent
5c45eaf9b3
commit
b9927c8c8d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user