tgsi: handle projection modifier for array textures.
authorRoland Scheidegger <sroland@vmware.com>
Tue, 5 Mar 2013 16:24:32 +0000 (17:24 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 5 Mar 2013 19:10:37 +0000 (20:10 +0100)
commitb9eb573600ff6d654bbc27d1fc5e935e5a74b071
treef367f73a61354076ca5617cd938fb2d2d790f08c
parentbe6d18ba5e90422fc794ef644eb235e138604d12
tgsi: handle projection modifier for array textures.

This partly reverts 6ace2e41da7dded630d932d03bacb7e14a93d47a.
Apparently with GL_MESA_texture_array fixed-function texturing
with texture arrays is possible, and hence we have to handle TXP.
(Though noone seems to know the semantics, softpipe now does what
it did before, which is to NOT project the array coord, llvmpipe
for instance however indeed does project the array coord. Unlike
before it will project the comparison coord for shadow1d array, as
that clearly was an error.)
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=61828.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c