diff options
author | Jordan Justen <[email protected]> | 2018-10-10 02:31:00 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2018-10-11 15:16:04 -0700 |
commit | 494d2ec277281d25f23b1c42efb9a915b16379ba (patch) | |
tree | ba1e9cd0017fa7d5d7e910d79544f35166dbf161 /src/mesa | |
parent | d18a0d955eb307e242cbb32134849bb95a88ecb6 (diff) |
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 <[email protected]>
Reviewed-by: Rafael Antognolli <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_misc_state.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |