summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-02-06 15:52:33 +1000
committerDave Airlie <airlied@redhat.com>2013-02-06 15:52:33 +1000
commitd762631c9306b6580b34db1e7eb57bbcac901390 (patch)
tree12bc6509dad3ae6ac66138e26881837fd95b2f81
parentc6980b2add5752a7c285a846b2c9353c9d18afd4 (diff)
downloadxorg-driver-xf86-video-nouveau-d762631c9306b6580b34db1e7eb57bbcac901390.tar.gz
nouveau: align shared buffers to 256
We were getting 0xa5 error code on 2D transfers from tiled VRAM to untiled GART when using USB offload devices, this fixes this by upping the alignment on the 2D engine for shared buffers. Signed-off-by: Dave Airlie <airlied@redhat.com>
-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)