--- qxl/qxl_display.c 2014-05-19 09:27:28.298217035 -0400 +++ qxl.orig/qxl_display.c 2014-05-19 09:31:00.327028070 -0400 @@ -574,6 +574,10 @@ bo->surf.height, bo->surf.stride, bo->surf.format); qxl_io_create_primary(qdev, base_offset, bo); bo->is_primary = true; + } + + if (bo->is_primary) { + DRM_DEBUG_KMS("setting surface_id to 0 for primary surface %d on crtc %d\n", bo->surface_id, qcrtc->index); surf_id = 0; } else { surf_id = bo->surface_id;