summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nv_accel_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nv_accel_common.c b/src/nv_accel_common.c
index e0d9938..09c14b3 100644
--- a/src/nv_accel_common.c
+++ b/src/nv_accel_common.c
@@ -55,7 +55,7 @@ nouveau_allocate_surface(ScrnInfoPtr scrn, int width, int height, int bpp,
} else {
if (bpp >= 8 && !shared)
tiled = TRUE;
- *pitch = NOUVEAU_ALIGN(width * cpp, 64);
+ *pitch = NOUVEAU_ALIGN(width * cpp, shared ? 256 : 64);
}
} else {
if (scanout && pNv->tiled_scanout)