mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
iris: Ajust gem buffer allocation size in Xe kmd
gem buffer size must also be aligned to mem_alignment otherwise vm binds can fail when Xe kmd checks if vm bind range is bigger than gem buffer size. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22059>
This commit is contained in:
parent
a25ef68f68
commit
8ec0cb120c
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ xe_gem_create(struct iris_bufmgr *bufmgr,
|
|||
|
||||
struct drm_xe_gem_create gem_create = {
|
||||
.vm_id = iris_bufmgr_get_global_vm_id(bufmgr),
|
||||
.size = size,
|
||||
.size = align64(size, iris_bufmgr_get_device_info(bufmgr)->mem_alignment),
|
||||
};
|
||||
for (uint16_t i = 0; i < regions_count; i++)
|
||||
gem_create.flags |= BITFIELD_BIT(regions[i]->instance);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue