OSDN Git Service

gallivm: make sampling more robust when the sampler setup is bogus
authorRoland Scheidegger <sroland@vmware.com>
Fri, 29 May 2015 16:17:24 +0000 (18:17 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 29 May 2015 17:33:19 +0000 (19:33 +0200)
commitc0d2b83f0bb15c1a10e53ef85c167febf699921a
treed9e7257aa6d20a1a82853fcb53aeca66adfb6fa0
parent0ad15e55bfbca3d6b829b985f9e7ea7e3e69bc61
gallivm: make sampling more robust when the sampler setup is bogus

Pure integer formats cannot be sampled with linear tex / mip filters. In GL
such a setup would make the texture incomplete.
We shouldn't rely on the state tracker though to filter that out, just return
all zeros instead of dying in the lerp.

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