summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-08 11:59:02 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-08 11:59:02 +0000
commit6abfa4c5662e5294edc501953dbfa7aabf0b2f57 (patch)
tree9b57268a99e4b6145e0fdb27eccee2d76646ecbf
parent5c5ebd6a3ecf3bd83747003bc272a736b7c333c0 (diff)
sna: Mark the pixmap for writing when creating the screen resources
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c7
-rw-r--r--src/sna/sna_driver.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 419d1c69..2769d4b8 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2051,6 +2051,13 @@ sna_pixmap_force_to_gpu(PixmapPtr pixmap, unsigned flags)
struct sna *sna = to_sna_from_pixmap(pixmap);
unsigned mode;
+ DBG(("%s: forcing creation of gpu bo (%dx%d@%d, flags=%x)\n",
+ __FUNCTION__,
+ pixmap->drawable.width,
+ pixmap->drawable.height,
+ pixmap->drawable.bitsPerPixel,
+ priv->create));
+
mode = 0;
if (priv->cpu_damage && !priv->cpu_bo)
mode |= CREATE_INACTIVE;
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index e53b75fe..ddacfd12 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -198,7 +198,7 @@ static Bool sna_create_screen_resources(ScreenPtr screen)
return FALSE;
}
- if (!sna_pixmap_force_to_gpu(sna->front, MOVE_READ)) {
+ if (!sna_pixmap_force_to_gpu(sna->front, MOVE_WRITE)) {
xf86DrvMsg(screen->myNum, X_ERROR,
"[intel] Failed to allocate video resources for front buffer %dx%d at depth %d\n",
screen->width,