mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
iris: fix constant buffer 0 to be absolute
thanks to Jason for catching this. Fixes some va64 tests. Surprisingly not much else, as apparently getting to UBO range 4 is uncommon!
This commit is contained in:
parent
5a2257bb2f
commit
938afd484a
1 changed files with 11 additions and 0 deletions
|
|
@ -498,6 +498,17 @@ iris_init_render_context(struct iris_screen *screen,
|
|||
sba.DynamicStateBufferSize = 0xfffff;
|
||||
}
|
||||
|
||||
// XXX: INSTPM on Gen8
|
||||
uint32_t reg_val;
|
||||
iris_pack_state(GENX(CS_DEBUG_MODE2), ®_val, reg) {
|
||||
reg.CONSTANT_BUFFERAddressOffsetDisable = true;
|
||||
reg.CONSTANT_BUFFERAddressOffsetDisableMask = true;
|
||||
}
|
||||
iris_emit_cmd(batch, GENX(MI_LOAD_REGISTER_IMM), lri) {
|
||||
lri.RegisterOffset = GENX(CS_DEBUG_MODE2_num);
|
||||
lri.DataDWord = reg_val;
|
||||
}
|
||||
|
||||
/* 3DSTATE_DRAWING_RECTANGLE is non-pipelined, so we want to avoid
|
||||
* changing it dynamically. We set it to the maximum size here, and
|
||||
* instead include the render target dimensions in the viewport, so
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue