sna/gen8: Clamp URB allocations for GT3

From Chris Wilson in
7a9bdadd71730adc5266bc6758982abec5917b93

Fixes rendering problems on Broadwell GT3 (Iris 6100/Iris Pro 6200)
Tested by Thomas Weinbrenner on bugs@
This commit is contained in:
jsg 2015-11-02 04:11:01 +00:00
parent cd3e9efa37
commit ee66b4b1ec

View File

@ -462,21 +462,21 @@ gen8_emit_urb(struct sna *sna)
{ {
/* num of VS entries must be divisible by 8 if size < 9 */ /* num of VS entries must be divisible by 8 if size < 9 */
OUT_BATCH(GEN8_3DSTATE_URB_VS | (2 - 2)); 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 | (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(GEN8_3DSTATE_URB_HS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT | 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(GEN8_3DSTATE_URB_DS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT | 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(GEN8_3DSTATE_URB_GS | (2 - 2));
OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT | OUT_BATCH(0 << URB_ENTRY_SIZE_SHIFT |
0 << URB_STARTING_ADDRESS_SHIFT); 4 << URB_STARTING_ADDRESS_SHIFT);
} }
static void static void