diff options
author | Stéphane Marchesin <[email protected]> | 2012-01-15 23:32:59 -0800 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2012-01-15 23:39:49 -0800 |
commit | 23d4a0569dcb70bdfd748bf7e1f5102289bfad6b (patch) | |
tree | 7ef1c29ea94efa9603554d5a09f689429d3f63fe /src/gallium/drivers/i915/i915_clear.c | |
parent | 6e9478e382df0e2fc45741c385976ae5d26c5345 (diff) |
i915g: Fix the blending for the A8 destination buffer case.
The i915 GPU can't do A8 dst, so we abuse GREEN8 buffers for that
purpose. However, things get hairy as we start to do blending,
because then GL_DST_*_ALPHA should be replaced with GL_DST_*_COLOR.
This is what we do here.
Fixes piglt fbo-alpha.
Diffstat (limited to 'src/gallium/drivers/i915/i915_clear.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_clear.c b/src/gallium/drivers/i915/i915_clear.c index 7341156310d..d6e6f567b89 100644 --- a/src/gallium/drivers/i915/i915_clear.c +++ b/src/gallium/drivers/i915/i915_clear.c @@ -74,7 +74,7 @@ i915_clear_emit(struct pipe_context *pipe, unsigned buffers, } /* correctly swizzle clear value */ - if (i915->current.need_target_fixup) + if (i915->current.target_fixup_format) util_pack_color(color->f, cbuf->format, &u_color); else util_pack_color(color->f, PIPE_FORMAT_B8G8R8A8_UNORM, &u_color); |