summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-04-09 09:52:13 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-04-09 09:53:06 +0100
commitfbe081061a2790e0e6e6a4065af313df0d1d6a84 (patch)
tree63edc295cf5d09eff4a9436f6556cf4c1540c371
parent5f1367d611b91008ba28a8c99a6b98a3e84449dc (diff)
sna: Document fence limits for gen4+
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 4136ce9a..67978c59 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -3369,6 +3369,9 @@ int kgem_choose_tiling(struct kgem *kgem, int tiling, int width, int height, int
__FUNCTION__, width, height));
tiling = -I915_TILING_X;
}
+
+ /* fences limited to 128k (256k on ivb) */
+ assert(width * bpp <= 128 * 1024 * 8);
}
if (tiling < 0)