Blame SOURCES/0001-sna-gen8-Clamp-URB-allocations-for-GT3.patch

e33ad9
From 7a9bdadd71730adc5266bc6758982abec5917b93 Mon Sep 17 00:00:00 2001
e33ad9
From: Chris Wilson <chris@chris-wilson.co.uk>
e33ad9
Date: Wed, 22 Oct 2014 19:31:10 +0100
e33ad9
Subject: [PATCH] sna/gen8: Clamp URB allocations for GT3
e33ad9
e33ad9
GT3 requires some reserved space in the URB allocation and so we must
e33ad9
reduce the amount we allocate to our vertices.
e33ad9
e33ad9
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81583
e33ad9
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
e33ad9
---
e33ad9
 src/sna/gen8_render.c | 10 +++++-----
e33ad9
 1 file changed, 5 insertions(+), 5 deletions(-)
e33ad9
e33ad9
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c
e33ad9
index 1eac5a7..a6a5dd2 100644
e33ad9
--- a/src/sna/gen8_render.c
e33ad9
+++ b/src/sna/gen8_render.c
e33ad9
@@ -462,21 +462,21 @@ gen8_emit_urb(struct sna *sna)
e33ad9
 {
e33ad9
 	/* num of VS entries must be divisible by 8 if size < 9 */
e33ad9
 	OUT_BATCH(GEN8_3DSTATE_URB_VS | (2 - 2));
e33ad9
-	OUT_BATCH(1024 << URB_ENTRY_NUMBER_SHIFT |
e33ad9
+	OUT_BATCH(960 << URB_ENTRY_NUMBER_SHIFT |
e33ad9
 		  (2 - 1) << URB_ENTRY_SIZE_SHIFT |
e33ad9
-		  0 << URB_STARTING_ADDRESS_SHIFT);
e33ad9
+		  4 << URB_STARTING_ADDRESS_SHIFT);
e33ad9
 
e33ad9
 	OUT_BATCH(GEN8_3DSTATE_URB_HS | (2 - 2));
e33ad9
 	OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
e33ad9
-		  0 << URB_STARTING_ADDRESS_SHIFT);
e33ad9
+		  4 << URB_STARTING_ADDRESS_SHIFT);
e33ad9
 
e33ad9
 	OUT_BATCH(GEN8_3DSTATE_URB_DS | (2 - 2));
e33ad9
 	OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
e33ad9
-		  0 << URB_STARTING_ADDRESS_SHIFT);
e33ad9
+		  4 << URB_STARTING_ADDRESS_SHIFT);
e33ad9
 
e33ad9
 	OUT_BATCH(GEN8_3DSTATE_URB_GS | (2 - 2));
e33ad9
 	OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
e33ad9
-		  0 << URB_STARTING_ADDRESS_SHIFT);
e33ad9
+		  4 << URB_STARTING_ADDRESS_SHIFT);
e33ad9
 }
e33ad9
 
e33ad9
 static void
e33ad9
-- 
e33ad9
2.1.0
e33ad9