From e2165f0e6b0620e3d788546924a2174506fbbde5 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 5 Nov 2011 19:46:13 +0000 Subject: sna: For a 32k max window size, we need to handle up to 128k strides Reported-by: Clemens Eisserer Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42619 Signed-off-by: Chris Wilson --- src/sna/blt.c | 2 +- src/sna/kgem.h | 2 +- src/sna/sna.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sna/blt.c b/src/sna/blt.c index 3b07d834..075ac8a1 100644 --- a/src/sna/blt.c +++ b/src/sna/blt.c @@ -38,7 +38,7 @@ void memcpy_blt(const void *src, void *dst, int bpp, - uint16_t src_stride, uint16_t dst_stride, + uint32_t src_stride, uint32_t dst_stride, int16_t src_x, int16_t src_y, int16_t dst_x, int16_t dst_y, uint16_t width, uint16_t height) diff --git a/src/sna/kgem.h b/src/sna/kgem.h index 70a58106..3c4ad002 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -64,7 +64,7 @@ struct kgem_bo { uint32_t size; uint32_t delta; - uint32_t pitch : 16; + uint32_t pitch : 20; /* max 128k */ uint32_t tiling : 2; uint32_t reusable : 1; uint32_t dirty : 1; diff --git a/src/sna/sna.h b/src/sna/sna.h index ce9992b5..9d0b7070 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -641,7 +641,7 @@ sna_compute_composite_region(RegionPtr region, void memcpy_blt(const void *src, void *dst, int bpp, - uint16_t src_stride, uint16_t dst_stride, + uint32_t src_stride, uint32_t dst_stride, int16_t src_x, int16_t src_y, int16_t dst_x, int16_t dst_y, uint16_t width, uint16_t height); -- cgit v1.2.3