glsl: Use sampler_coordinate_components instead of passing it by hand.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Sep 2013 18:20:36 +0000 (11:20 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Sep 2013 05:48:32 +0000 (22:48 -0700)
commitc59659ca08cd567f826b14e26e1277e9746bb097
treeb55d98b56d7df6165b33d45cd60e379f3d8e9c82
parent694be9115d43b93610f5386b36117ec9a31ed47c
glsl: Use sampler_coordinate_components instead of passing it by hand.

We used to pass the number of components actually used for the
coordinate (rather than padding, shadow comparitors, and projectors) by
hand, specifying it on every _texture() call.

The new helper function can just compute this, eliminating a lot of
potential mistakes.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_functions.cpp