From: Jason Ekstrand Date: Fri, 26 Jun 2015 00:31:56 +0000 (-0700) Subject: nir/spirv: Set the system value mode on builtins X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e1792b1b75b29e6d1087ceb865c5080005e8fe9;p=mesa.git nir/spirv: Set the system value mode on builtins --- diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index fbf6969f2fd..7632ca2bf18 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -419,6 +419,7 @@ var_decoration_cb(struct vtn_builder *b, struct vtn_value *val, var->data.descriptor_set = dec->literals[0]; break; case SpvDecorationBuiltIn: + var->data.mode = nir_var_system_value; var->data.read_only = true; switch ((SpvBuiltIn)dec->literals[0]) { case SpvBuiltInFrontFacing: