From 494d2ec277281d25f23b1c42efb9a915b16379ba Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Wed, 10 Oct 2018 02:31:00 -0700 Subject: i965/gen10+: Initialize new fields in STATE_BASE_ADDRESS Ref: 263b584d5e4 "i965/skl: Emit extra zeros in STATE_BASE_ADDRESS on Skylake." Signed-off-by: Jordan Justen Reviewed-by: Rafael Antognolli --- src/mesa/drivers/dri/i965/brw_misc_state.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index 0895e1f2b7f..9bff2c8ac92 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -688,7 +688,7 @@ brw_upload_state_base_address(struct brw_context *brw) * to the bottom 4GB. */ uint32_t mocs_wb = devinfo->gen >= 9 ? SKL_MOCS_WB : BDW_MOCS_WB; - int pkt_len = devinfo->gen >= 9 ? 19 : 16; + int pkt_len = devinfo->gen >= 10 ? 22 : (devinfo->gen >= 9 ? 19 : 16); BEGIN_BATCH(pkt_len); OUT_BATCH(CMD_STATE_BASE_ADDRESS << 16 | (pkt_len - 2)); @@ -718,6 +718,11 @@ brw_upload_state_base_address(struct brw_context *brw) OUT_BATCH(0); OUT_BATCH(0); } + if (devinfo->gen >= 10) { + OUT_BATCH(1); + OUT_BATCH(0); + OUT_BATCH(0); + } ADVANCE_BATCH(); } else if (devinfo->gen >= 6) { uint8_t mocs = devinfo->gen == 7 ? GEN7_MOCS_L3 : 0; -- cgit v1.2.3