mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
anv: 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
f94ff2cc03
commit
c17e2216dd
1 changed files with 6 additions and 0 deletions
|
|
@ -1626,6 +1626,12 @@ anv_bo_vma_alloc_or_close(struct anv_device *device,
|
||||||
if (device->info.ver >= 12 && (alloc_flags & ANV_BO_ALLOC_IMPLICIT_CCS))
|
if (device->info.ver >= 12 && (alloc_flags & ANV_BO_ALLOC_IMPLICIT_CCS))
|
||||||
align = 64 * 1024;
|
align = 64 * 1024;
|
||||||
|
|
||||||
|
/* For XeHP, lmem and smem cannot share a single PDE, which means they
|
||||||
|
* can't live in the same 2MiB aligned region.
|
||||||
|
*/
|
||||||
|
if (device->info.verx10 >= 125)
|
||||||
|
align = 2 * 1024 * 1024;
|
||||||
|
|
||||||
if (alloc_flags & ANV_BO_ALLOC_FIXED_ADDRESS) {
|
if (alloc_flags & ANV_BO_ALLOC_FIXED_ADDRESS) {
|
||||||
bo->has_fixed_address = true;
|
bo->has_fixed_address = true;
|
||||||
bo->offset = explicit_address;
|
bo->offset = explicit_address;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue