mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
i965/skl: Emit extra zeros in STATE_BASE_ADDRESS on Skylake.
Skylake introduces a new base address for a feature we don't yet expose. Setting these to 0 should be safe. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
eaf12022d2
commit
263b584d5e
1 changed files with 11 additions and 2 deletions
|
|
@ -31,8 +31,12 @@
|
||||||
*/
|
*/
|
||||||
static void upload_state_base_address(struct brw_context *brw)
|
static void upload_state_base_address(struct brw_context *brw)
|
||||||
{
|
{
|
||||||
BEGIN_BATCH(16);
|
perf_debug("Missing MOCS setup for STATE_BASE_ADDRESS.");
|
||||||
OUT_BATCH(CMD_STATE_BASE_ADDRESS << 16 | (16 - 2));
|
|
||||||
|
int pkt_len = brw->gen >= 9 ? 19 : 16;
|
||||||
|
|
||||||
|
BEGIN_BATCH(pkt_len);
|
||||||
|
OUT_BATCH(CMD_STATE_BASE_ADDRESS << 16 | (pkt_len - 2));
|
||||||
/* General state base address: stateless DP read/write requests */
|
/* General state base address: stateless DP read/write requests */
|
||||||
OUT_BATCH(BDW_MOCS_WB << 4 | 1);
|
OUT_BATCH(BDW_MOCS_WB << 4 | 1);
|
||||||
OUT_BATCH(0);
|
OUT_BATCH(0);
|
||||||
|
|
@ -59,6 +63,11 @@ static void upload_state_base_address(struct brw_context *brw)
|
||||||
OUT_BATCH(0xfffff001);
|
OUT_BATCH(0xfffff001);
|
||||||
/* Instruction access upper bound */
|
/* Instruction access upper bound */
|
||||||
OUT_BATCH(ALIGN(brw->cache.bo->size, 4096) | 1);
|
OUT_BATCH(ALIGN(brw->cache.bo->size, 4096) | 1);
|
||||||
|
if (brw->gen >= 9) {
|
||||||
|
OUT_BATCH(1);
|
||||||
|
OUT_BATCH(0);
|
||||||
|
OUT_BATCH(0);
|
||||||
|
}
|
||||||
ADVANCE_BATCH();
|
ADVANCE_BATCH();
|
||||||
|
|
||||||
brw->state.dirty.brw |= BRW_NEW_STATE_BASE_ADDRESS;
|
brw->state.dirty.brw |= BRW_NEW_STATE_BASE_ADDRESS;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue