OSDN Git Service

glsl: Fix samplerCubeShadow support in shader compiler
authorAnuj Phogat <anuj.phogat@gmail.com>
Tue, 6 Dec 2011 19:11:03 +0000 (11:11 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Dec 2011 23:11:29 +0000 (15:11 -0800)
commit4558987818e1ff36e86592e9c5c0b5e181be9ec1
treebdbd91ec2869b667c4766c48608ad2507171e74e
parent4273943a07bb577f91972b64232d394c1197c564
glsl: Fix samplerCubeShadow support in shader compiler

This patch fixes the samplerCubeShadow support in GLSL shader compiler.
shader compiler was picking the 'r' texture coordinate for shadow comparison
when the expected behaviour is to use 'q' texture coordinate in case of cube
shadow maps.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/builtins/tools/texture_builtins.py