i915g: Implement writemask fixup
authorStéphane Marchesin <marcheu@chromium.org>
Thu, 5 Sep 2013 00:55:21 +0000 (17:55 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 5 Sep 2013 02:48:18 +0000 (19:48 -0700)
commit8709e2b6c564435111545c470da8796c81f020c4
tree7baa8736e5c2ae7cca8d8cfcc28a34d68b59e6f5
parentb1461acf15ab450fa0d360ec5e03c90d0797a6d4
i915g: Implement writemask fixup

The fixup code emulates non-BGRA render targets by adding an
extra instruction at the end of fragment shaders to swizzle the
output. To do this, we also swizzle the blend function. However
an oversight until now was that the writemask wasn't getting
swizzled. This patch fixes that which fixes a bunch of piglit
tests.
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/i915/i915_state_emit.c
src/gallium/drivers/i915/i915_state_static.c