Mesa (master): glsl: Use sampler_coordinate_components instead of passing it by hand.

Kenneth Graunke kwg at kemper.freedesktop.org
Thu Sep 12 07:03:43 UTC 2013


Module: Mesa
Branch: master
Commit: c59659ca08cd567f826b14e26e1277e9746bb097
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c59659ca08cd567f826b14e26e1277e9746bb097

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Sep 11 11:20:36 2013 -0700

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 at whitecape.org>

---

 src/glsl/builtin_functions.cpp |  900 ++++++++++++++++++++--------------------
 1 files changed, 450 insertions(+), 450 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=c59659ca08cd567f826b14e26e1277e9746bb097



More information about the mesa-commit mailing list