summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-10-09 17:26:39 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-10-09 17:26:39 +0100
commit8bbfa88a8691f6c1b2903090c3cd3159126ef563 (patch)
treedd02943c75e47d5392c8ed0b485e57d2321c1c85
parentf8a005d1f984382272ad10cabd88c0422d4e76e8 (diff)
sna: Also check the bg rrop for reads when deciding upon fallback placement
Reported-and-tested-by: chr.ohm@gmx.net Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55810 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 3d8392f9..3973c9d2 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2338,7 +2338,7 @@ drawable_gc_flags(DrawablePtr draw, GCPtr gc, bool partial)
return MOVE_READ | MOVE_WRITE;
}
- if (fb_gc(gc)->and) {
+ if (fb_gc(gc)->and | fb_gc(gc)->bgand) {
DBG(("%s: read due to rrop %d:%x\n",
__FUNCTION__, gc->alu, (unsigned)fb_gc(gc)->and));
return MOVE_READ | MOVE_WRITE;