radeon/llvm: fix shadow cube texturing for GL3.0
authorMarek Olšák <marek.olsak@amd.com>
Tue, 24 Sep 2013 17:28:27 +0000 (19:28 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 25 Sep 2013 18:45:23 +0000 (20:45 +0200)
commit028b26e2efa7485fb7a5dd9be681074a36f9e442
tree445cc461c796c4a24b771e23f72fda5a7a545dab
parent57f38e9f921bcfac0087765b4acb2c258604ea29
radeon/llvm: fix shadow cube texturing for GL3.0

The fix is at the end (TGSI_TEXTURE_SHADOWCUBE handling), but I also
restructured the code for it to be more readable.

Fixes spec/!OpenGL 3.0/sampler-cube-shadow.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c