sna/gen6: Don't modify composite arguments whilst checking for BLT

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-10-18 14:43:37 +01:00
parent ae7bd2bf70
commit 0b83abfb2b
1 changed files with 5 additions and 8 deletions

View File

@ -2592,18 +2592,15 @@ gen6_render_fill_boxes(struct sna *sna,
dst->drawable.width > 8192 ||
dst->drawable.height > 8192 ||
!gen6_check_dst_format(format)) {
uint8_t alu = GXcopy;
uint8_t alu = -1;
if (op == PictOpClear) {
if (op == PictOpClear || (op == PictOpOutReverse && color->alpha >= 0xff00))
alu = GXclear;
pixel = 0;
op = PictOpSrc;
}
if (op == PictOpOver && color->alpha >= 0xff00)
op = PictOpSrc;
if (op == PictOpSrc || (op == PictOpOver && color->alpha >= 0xff00))
alu = GXcopy;
if (op == PictOpSrc &&
if (alu != -1 &&
sna_get_pixel_from_rgba(&pixel,
color->red,
color->green,