summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-08-14 21:32:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-08-14 21:32:48 +0100
commitc3b093b3c0676d6c9851af2b0c16806140c55258 (patch)
treeb1be183117d4670f32569ca1d5198c2b4f4341e4 /src/sna
parente59ea828f521e2f1963152a9211c36b8091bf655 (diff)
sna: DBG log invalid surface sizes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/kgem.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index efce0266..16f72a0f 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -1655,15 +1655,21 @@ static uint32_t kgem_surface_size(struct kgem *kgem,
/* If it is too wide for the blitter, don't even bother. */
if (tiling != I915_TILING_NONE) {
- if (*pitch > 8192)
+ if (*pitch > 8192) {
+ DBG(("%s: too wide for tiled surface (pitch=%d, limit=%d)\n",
+ __FUNCTION__, *pitch, 8192));
return 0;
+ }
for (size = tile_width; size < *pitch; size <<= 1)
;
*pitch = size;
} else {
- if (*pitch >= 32768)
+ if (*pitch >= 32768) {
+ DBG(("%s: too wide for linear surface (pitch=%d, limit=%d)\n",
+ __FUNCTION__, *pitch, 32767));
return 0;
+ }
}
size = *pitch * height;