mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 10:10:14 +01:00
iris: Place scanout buffers only into lmem for discrete GPUs
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22060>
This commit is contained in:
parent
d72705ce43
commit
c10ff19704
1 changed files with 2 additions and 1 deletions
|
|
@ -1000,7 +1000,8 @@ alloc_fresh_bo(struct iris_bufmgr *bufmgr, uint64_t bo_size, unsigned flags)
|
|||
case IRIS_HEAP_DEVICE_LOCAL_PREFERRED:
|
||||
/* For vram allocations, still use system memory as a fallback. */
|
||||
regions[num_regions++] = bufmgr->vram.region;
|
||||
regions[num_regions++] = bufmgr->sys.region;
|
||||
if (!(flags & BO_ALLOC_SCANOUT))
|
||||
regions[num_regions++] = bufmgr->sys.region;
|
||||
break;
|
||||
case IRIS_HEAP_DEVICE_LOCAL:
|
||||
regions[num_regions++] = bufmgr->vram.region;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue