summaryrefslogtreecommitdiff
path: root/src/sna/gen8_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-10-22 19:31:10 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-10-22 19:39:59 +0100
commit7a9bdadd71730adc5266bc6758982abec5917b93 (patch)
tree43186f96220821fcfb2798e4aa80afb1b16d4441 /src/sna/gen8_render.c
parentde54a93217cc550c44ee138f0511ede6925d84e0 (diff)
sna/gen8: Clamp URB allocations for GT3
GT3 requires some reserved space in the URB allocation and so we must reduce the amount we allocate to our vertices. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81583 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen8_render.c')
-rw-r--r--src/sna/gen8_render.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/gen8_render.c b/src/sna/gen8_render.c
index 1eac5a79..a6a5dd29 100644
--- a/src/sna/gen8_render.c
+++ b/src/sna/gen8_render.c
@@ -462,21 +462,21 @@ gen8_emit_urb(struct sna *sna)
{
/* num of VS entries must be divisible by 8 if size < 9 */
OUT_BATCH(GEN8_3DSTATE_URB_VS | (2 - 2));
- OUT_BATCH(1024 << URB_ENTRY_NUMBER_SHIFT |
+ OUT_BATCH(960 << URB_ENTRY_NUMBER_SHIFT |
(2 - 1) << URB_ENTRY_SIZE_SHIFT |
- 0 << URB_STARTING_ADDRESS_SHIFT);
+ 4 << URB_STARTING_ADDRESS_SHIFT);
OUT_BATCH(GEN8_3DSTATE_URB_HS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
- 0 << URB_STARTING_ADDRESS_SHIFT);
+ 4 << URB_STARTING_ADDRESS_SHIFT);
OUT_BATCH(GEN8_3DSTATE_URB_DS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
- 0 << URB_STARTING_ADDRESS_SHIFT);
+ 4 << URB_STARTING_ADDRESS_SHIFT);
OUT_BATCH(GEN8_3DSTATE_URB_GS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
- 0 << URB_STARTING_ADDRESS_SHIFT);
+ 4 << URB_STARTING_ADDRESS_SHIFT);
}
static void