mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
anv: Align memory VA to support for Ys, Tile64 tiled images
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23620>
This commit is contained in:
parent
e03f3b646c
commit
db4488a2dc
1 changed files with 4 additions and 0 deletions
|
|
@ -1405,6 +1405,10 @@ anv_bo_vma_alloc_or_close(struct anv_device *device,
|
|||
|
||||
uint32_t align = device->physical->info.mem_alignment;
|
||||
|
||||
/* If it's big enough to store a tiled resource, we need 64K alignment */
|
||||
if (bo->size >= 64 * 1024)
|
||||
align = MAX2(64 * 1024, align);
|
||||
|
||||
/* If we're using the AUX map, make sure we follow the required
|
||||
* alignment.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue