mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 08:20:12 +01:00
iris: Align buffer VMA to 2MiB for XeHP
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14155>
This commit is contained in:
parent
c17e2216dd
commit
abace2b8a4
1 changed files with 3 additions and 1 deletions
|
|
@ -2314,7 +2314,9 @@ iris_bufmgr_create(struct intel_device_info *devinfo, int fd, bool bo_reuse)
|
|||
bufmgr->handle_table =
|
||||
_mesa_hash_table_create(NULL, _mesa_hash_uint, _mesa_key_uint_equal);
|
||||
|
||||
bufmgr->vma_min_align = devinfo->has_local_mem ? 64 * 1024 : PAGE_SIZE;
|
||||
bufmgr->vma_min_align =
|
||||
devinfo->verx10 >= 125 ? 2 * 1024 * 1024 :
|
||||
(devinfo->has_local_mem ? 64 * 1024 : PAGE_SIZE);
|
||||
|
||||
if (devinfo->has_aux_map) {
|
||||
bufmgr->aux_map_ctx = intel_aux_map_init(bufmgr, &aux_map_allocator,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue