mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
anv: Always set bindless surface base on SKL+
Ever since 04ccfeae98 ("anv: Require softpin on Gen8+"), softpin has
been a hard requirement on BDW+ so there's no reason for SKL+ code to
have a relocation path.
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13610>
This commit is contained in:
parent
13fe43714c
commit
1936ceec58
1 changed files with 3 additions and 10 deletions
|
|
@ -190,16 +190,9 @@ genX(cmd_buffer_emit_state_base_address)(struct anv_cmd_buffer *cmd_buffer)
|
|||
sba.InstructionAccessUpperBoundModifyEnable = true;
|
||||
# endif
|
||||
# if (GFX_VER >= 9)
|
||||
if (anv_use_softpin(device->physical)) {
|
||||
sba.BindlessSurfaceStateBaseAddress = (struct anv_address) {
|
||||
.bo = device->surface_state_pool.block_pool.bo,
|
||||
.offset = 0,
|
||||
};
|
||||
sba.BindlessSurfaceStateSize = (1 << 20) - 1;
|
||||
} else {
|
||||
sba.BindlessSurfaceStateBaseAddress = ANV_NULL_ADDRESS;
|
||||
sba.BindlessSurfaceStateSize = 0;
|
||||
}
|
||||
sba.BindlessSurfaceStateBaseAddress =
|
||||
(struct anv_address) { device->surface_state_pool.block_pool.bo, 0 };
|
||||
sba.BindlessSurfaceStateSize = (1 << 20) - 1;
|
||||
sba.BindlessSurfaceStateMOCS = mocs;
|
||||
sba.BindlessSurfaceStateBaseAddressModifyEnable = true;
|
||||
# endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue