summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir.h
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2015-11-11 06:24:53 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-05-01 23:13:05 +1000
commit94438578d219d0f701a6324cf294ee23d102a978 (patch)
tree85a0dd6953381fa82e8f50d4ccf56a9bd6f750fe /src/compiler/glsl/ir.h
parent2d9936a6862b371adcb48dbda8d521a76ce18871 (diff)
downloadexternal_mesa3d-94438578d219d0f701a6324cf294ee23d102a978.zip
external_mesa3d-94438578d219d0f701a6324cf294ee23d102a978.tar.gz
external_mesa3d-94438578d219d0f701a6324cf294ee23d102a978.tar.bz2
glsl: validate and store component layout qualifier in GLSL IR
We make use of the existing IR field location_frac used for tracking component locations. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/glsl/ir.h')
-rw-r--r--src/compiler/glsl/ir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h
index b1a1d56..0c319ea 100644
--- a/src/compiler/glsl/ir.h
+++ b/src/compiler/glsl/ir.h
@@ -703,6 +703,11 @@ public:
unsigned explicit_binding:1;
/**
+ * Was an initial component explicitly set in the shader?
+ */
+ unsigned explicit_component:1;
+
+ /**
* Does this variable have an initializer?
*
* This is used by the linker to cross-validiate initializers of global