[Spice-devel] [spice-protocol PATCH 30/46] qxlhw: qxl_surface: move src_bitmap address storage to qxlhw_pci:qxlhw_make_drawable

Alon Levy alevy at redhat.com
Tue Apr 10 04:50:26 PDT 2012


---
 src/qxl_surface.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index 0b8c884..dbfc7fe 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -890,8 +890,6 @@ real_upload_box (qxl_surface_t *surface, int x1, int y1, int x2, int y2)
     image = qxl_image_create (
 	qxl, (const uint8_t *)data, x1, y1, x2 - x1, y2 - y1, stride,
 	surface->bpp == 24 ? 4 : surface->bpp / 8, TRUE);
-    drawable.u.copy.src_bitmap =
-	physical_address (qxl, image, qxl->main_mem_slot);
 
     push_drawable (qxl, &drawable, image);
 }
@@ -1178,7 +1176,6 @@ qxl_surface_copy (qxl_surface_t *dest,
 
 	init_drawable (&drawable, qxl, dest->id, QXL_DRAW_COPY, &qrect);
 
-	drawable.u.copy.src_bitmap = physical_address (qxl, image, qxl->main_mem_slot);
 	drawable.u.copy.src_area.left = src_x1;
 	drawable.u.copy.src_area.top = src_y1;
 	drawable.u.copy.src_area.right = src_x1 + width;
@@ -1241,8 +1238,6 @@ qxl_surface_put_image (qxl_surface_t *dest,
     image = qxl_image_create (
 	qxl, (const uint8_t *)src, 0, 0, width, height, src_pitch,
 	dest->bpp == 24 ? 4 : dest->bpp / 8, FALSE);
-    drawable.u.copy.src_bitmap =
-       physical_address (qxl, image, qxl->main_mem_slot);
 
     push_drawable (qxl, &drawable, image);
 
-- 
1.7.9.3



More information about the Spice-devel mailing list