summaryrefslogtreecommitdiff
path: root/exa/exa_accel.c
diff options
context:
space:
mode:
authorGeorge Matsumura <gmmatsumura01@bvsd.org>2019-12-26 23:01:26 +0000
committerMichel Dänzer <michel@daenzer.net>2020-01-27 17:43:33 +0000
commit83826075e59c0393c16d2a2482dc5c9f2fdf4564 (patch)
treee1509ea23837bc890a6967d064eaa905ade546d0 /exa/exa_accel.c
parent0839b0523a01067cb9c9b53ebdd9ce4c00f0eb12 (diff)
Restrict 1x1 pixmap filling optimization to GXcopy
This restricts an optimization whereby the filling of 1x1 pixmaps went around the driver-provided function to cases where the source color is meant to be directly copied to the destination, as opposed to other operations which should produce different destination values than just the foreground color. Signed-off-by: George Matsumura <gmmatsumura01@bvsd.org> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Diffstat (limited to 'exa/exa_accel.c')
-rw-r--r--exa/exa_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index b26d5c804..41fcb129f 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -1037,7 +1037,7 @@ exaFillRegionSolid(DrawablePtr pDrawable, RegionPtr pRegion, Pixel pixel,
if (pExaPixmap->pDamage &&
pExaPixmap->sys_ptr && pDrawable->type == DRAWABLE_PIXMAP &&
pDrawable->width == 1 && pDrawable->height == 1 &&
- pDrawable->bitsPerPixel != 24) {
+ pDrawable->bitsPerPixel != 24 && alu == GXcopy) {
RegionPtr pending_damage = DamagePendingRegion(pExaPixmap->pDamage);
switch (pDrawable->bitsPerPixel) {