i915g: Add more optimizations
authorStéphane Marchesin <marcheu@chromium.org>
Wed, 4 Sep 2013 19:03:10 +0000 (12:03 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Wed, 4 Sep 2013 19:11:02 +0000 (12:11 -0700)
commit4e861ac4a1f1bdbd28f66e3f15eb45aa45a47bad
treefa8bbe4dc6406af2d962d56501763939a742689b
parenta974b915b6035d93f1739793094157272444cd1c
i915g: Add more optimizations

This patch adds liveness analysis to i915g and a couple
optimizations which benefit from it. One interesting
optimization turns (fake) indirect texture accesses into direct
texture accesses (the i915 supports a maximum of 4 indirect
texture accesses). Among other things this fixes a bunch of
piglit tests.
src/gallium/drivers/i915/i915_fpc.h
src/gallium/drivers/i915/i915_fpc_optimize.c
src/gallium/drivers/i915/i915_fpc_translate.c