glsl: Request an Nx1 type instance in ir_quadop_vector lowering pass.
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 22 Mar 2012 22:09:40 +0000 (15:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jul 2012 22:14:34 +0000 (15:14 -0700)
commit9d998a2a592ed688c90b408604b9dbec26b752ff
treeb2abda6114559212317f5ef0597af7b0e4fa054b
parent13cb99dc73f9337358c92412aefa918c2ec16431
glsl: Request an Nx1 type instance in ir_quadop_vector lowering pass.

No types have 0 columns.  The glsl_type::get_instance method contains

   if ((rows < 1) || (rows > 4) || (columns < 1) || (columns > 4))
      return error_type;

To get a vector, use columns = 1.

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