Skip to content

Commit d845cea

Browse files
George MatsumuraMichel Dänzer
George Matsumura
authored and
Michel Dänzer
committed
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 <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> (cherry picked from commit 83826075e59c0393c16d2a2482dc5c9f2fdf4564)
1 parent c2ef88c commit d845cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exa/exa_accel.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ exaFillRegionSolid(DrawablePtr pDrawable, RegionPtr pRegion, Pixel pixel,
10371037
if (pExaPixmap->pDamage &&
10381038
pExaPixmap->sys_ptr && pDrawable->type == DRAWABLE_PIXMAP &&
10391039
pDrawable->width == 1 && pDrawable->height == 1 &&
1040-
pDrawable->bitsPerPixel != 24) {
1040+
pDrawable->bitsPerPixel != 24 && alu == GXcopy) {
10411041
RegionPtr pending_damage = DamagePendingRegion(pExaPixmap->pDamage);
10421042

10431043
switch (pDrawable->bitsPerPixel) {

0 commit comments

Comments
 (0)