texture_builtins.py: Refactor coordinate dimension calculations.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 27 Dec 2010 10:50:42 +0000 (02:50 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 31 Jan 2011 19:10:59 +0000 (11:10 -0800)
commit99f36486ebf3d5a6edfd6329e882d6409a085582
tree63a55046ae339b3ed78a60ae03825a188804d025
parent819d57fce94b20fa0d34da6f037f0a53c4a5bdc2
texture_builtins.py: Refactor coordinate dimension calculations.

For offsets, we'll want the straight sampler dimensionality, without the
+1 for array types.  Create a new function to do that; refactor.
src/glsl/builtins/tools/texture_builtins.py