glsl: Explicitly specify a type when reading/printing ir_texture.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 25 Feb 2011 22:29:36 +0000 (14:29 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 14 Mar 2011 20:03:50 +0000 (13:03 -0700)
commit233b88eab9d8095523ebae3c4be1dbf2e2bd856a
tree7e39ea474572d67c90e82b16ae6cd029224e28d4
parentcb3317b85a9b8916317cb733ef4e6f13eaf0d890
glsl: Explicitly specify a type when reading/printing ir_texture.

This is necessary for GLSL 1.30+ shadow sampling functions, which return
a single float rather than splatting the value to a vec4 based on
GL_DEPTH_TEXTURE_MODE.
src/glsl/builtins/tools/texture_builtins.py
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_print_visitor.cpp
src/glsl/ir_reader.cpp