mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 23:50:22 +01:00
anv: intel: add softpin flag on imported BOs
Looks like we forgot to update this bit of the driver for softpin.
Fixes: 4affeba1e9 ("anv: Soft-pin everything else")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
66c61797ad
commit
9aedee64ac
1 changed files with 2 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ VkResult anv_CreateDmaBufImageINTEL(
|
|||
uint64_t bo_flags = 0;
|
||||
if (device->instance->physicalDevice.supports_48bit_addresses)
|
||||
bo_flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
|
||||
if (device->instance->physicalDevice.use_softpin)
|
||||
bo_flags |= EXEC_OBJECT_PINNED;
|
||||
|
||||
result = anv_bo_cache_import(device, &device->bo_cache,
|
||||
pCreateInfo->fd, bo_flags, &mem->bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue