i915g: Fix the blending for the A8 destination buffer case.
[mesa.git] / src / gallium / drivers / i915 / i915_clear.c
index 7341156310da648781d94fda4501e5bce3e59b6b..d6e6f567b89dc6ca65f5c7a1404d057fafe87daa 100644 (file)
@@ -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);