st/mesa: fix GLSL 1.30 texture shadow functions with the GL_ALPHA depth mode (v2)
authorMarek Olšák <marek.olsak@amd.com>
Thu, 23 Jul 2015 19:57:19 +0000 (21:57 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 28 Jul 2015 22:10:27 +0000 (00:10 +0200)
commit768b4a25b95b95989dae3ff2f5a06172a2f4ab85
tree9d5f2af312d00e76cbdf7bfcfdb7fbfe0890404b
parent82546729e3533c9a5ec0392585a60833bd93acca
st/mesa: fix GLSL 1.30 texture shadow functions with the GL_ALPHA depth mode (v2)

Fixes piglit:
    spec@glsl-1.30@execution@fs-texture-sampler2dshadow-10
    spec@glsl-1.30@execution@fs-texture-sampler2dshadow-11

v2: use st_shader_stage_to_ptarget

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp