gallivm: fix cube map array (and cube map shadow with bias) handling
authorRoland Scheidegger <sroland@vmware.com>
Fri, 1 Aug 2014 23:49:39 +0000 (01:49 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 5 Aug 2014 02:13:17 +0000 (04:13 +0200)
commitc3c33756ff828ba7ae065c224943aeb48b8ed2ba
treeb0343e219da3e9bf08370bcc75042331cdf7e638
parentea05cfaacac29d15c9c3d939e12546eba95f05d0
gallivm: fix cube map array (and cube map shadow with bias) handling

In particular need to handle TEX2/TXB2/TXL2 opcodes.
cube map shadow with bias already used TXB2 which didn't work before
at all, despite that there's by default no piglit change (but using
no_quad_lod and no_rho_opt indeed passes some more tex-miplevel-selection
tests).
The actual sampling code still won't handle cube map arrays.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c