glsl/ir_reader: Make sure constants have the right number of components.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 5 Sep 2011 19:03:29 +0000 (12:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Sep 2011 14:49:32 +0000 (07:49 -0700)
commit8ceb235c9cbb9504e32479db54287ed9387df75a
treeede163deb63bf9e26a347276dcc3e194b4e9cc2a
parent6afce988a9ee41af4ac1244d488ae6b89edf8d13
glsl/ir_reader: Make sure constants have the right number of components.

The list of numbers in (constant type (<numbers>)) needs to contain
exactly type->components() numbers (16 for a mat4, 3 for a vec3, etc.)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_reader.cpp