[PATCH 09/27] glamor: Drop duplicated lines for getting pixmap state in GetImage.

Eric Anholt eric at anholt.net
Tue Mar 11 14:30:23 PDT 2014


No change in generated code size -- apparently the compiler figured it
out.

Signed-off-by: Eric Anholt <eric at anholt.net>
---
 glamor/glamor_getimage.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/glamor/glamor_getimage.c b/glamor/glamor_getimage.c
index 5609e70..a932473 100644
--- a/glamor/glamor_getimage.c
+++ b/glamor/glamor_getimage.c
@@ -44,8 +44,6 @@ _glamor_get_image(DrawablePtr drawable, int x, int y, int w, int h,
 
     if (format != ZPixmap)
         goto fall_back;
-    pixmap = glamor_get_drawable_pixmap(drawable);
-    glamor_get_drawable_deltas(drawable, pixmap, &x_off, &y_off);
 
     if (!glamor_set_planemask(pixmap, planeMask)) {
         glamor_fallback("Failedto set planemask  in glamor_solid.\n");
-- 
1.9.0



More information about the xorg-devel mailing list