OSDN Git Service

gallivm: do per-element lod for lod bias and explicit derivs too
authorRoland Scheidegger <sroland@vmware.com>
Thu, 22 Aug 2013 17:05:00 +0000 (19:05 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 22 Aug 2013 17:05:52 +0000 (19:05 +0200)
commitbd0b6c518000efdba4898664835612315c2c3cd1
tree409bc0514544ec6c67b96fbe06d0a3449fb238f3
parent33694a1800cdf6909f197d711e84f636602981da
gallivm: do per-element lod for lod bias and explicit derivs too

Except for explicit derivs with cube maps which are very bogus anyway.
Just like explicit lod this is only used if no_quad_lod is set in
GALLIVM_DEBUG env var.
Minification is terrible on cpus which don't support true vector shifts
(but should work correctly). Cannot do the min/mag filter decision (if
they are different) per pixel though, only selecting different mip levels
works.

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