OSDN Git Service

gallivm: fix texel fetch for array textures
authorRoland Scheidegger <sroland@vmware.com>
Thu, 13 Dec 2012 18:12:58 +0000 (19:12 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 13 Dec 2012 18:17:09 +0000 (19:17 +0100)
commita460aea3f14222af46f88d1bc686f82180b8a872
tree99eca9859af07e6202b119e6f7f97fb72045d50a
parent6267853055e4ecb5ce0580316c4aa77935f541d3
gallivm: fix texel fetch for array textures

Since we don't call lp_build_sample_common() in the texel fetch path we missed
the layer fixup code. If someone would have tried to do texelFetch with array
textures it would have crashed for sure.
Not really tested (can't run the piglit test being able to use texelFetch with
array samplers for now with llvmpipe).

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c