diff options
author | Chia-I Wu <[email protected]> | 2013-05-07 14:50:02 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-08 11:00:07 +0800 |
commit | 61d57ec2768fde57cb3926d6757044593d6e9a08 (patch) | |
tree | ad7187bbf33cebf867034a76d87f25fec5a575c9 /src/gallium/drivers | |
parent | 80857d2c8b867f6060451c14e5aff5438f5d30f7 (diff) |
tgsi: clean up exec_tex()
Make use of tgsi_util_get_texture_coord_dim() to replace the big switch table.
There is a subtle difference with this change. When TXP is used with an array
texture, the layer is now also projected. This behavior matches the TGSI doc.
Since GLSL does not allow TXP on an array texture, I am not sure which
behavior is correct or preferred.
Signed-off-by: Chia-I Wu <[email protected]>
Acked-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions