glsl: Validate that built-in uniforms have backing state
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 29 May 2014 00:05:14 +0000 (17:05 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 30 Sep 2014 20:34:41 +0000 (13:34 -0700)
commit77005cfabd263e593cec37cd5933443785d6b9aa
tree09e4e1e714237580d33741d4d89542cb084205d9
parent8786544b3e3a024ccb04bb0c85f2afc07bb57f63
glsl: Validate that built-in uniforms have backing state

All built-in uniforms are supposed to be backed by some GL state.  The
state_slots field describes this backing state.

This helped me track down a bug in a later patch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/ir_validate.cpp