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:
committed by
Marge Bot
parent
d72705ce43
commit
c10ff19704
@@ -1000,7 +1000,8 @@ alloc_fresh_bo(struct iris_bufmgr *bufmgr, uint64_t bo_size, unsigned flags)
|
|||||||
case IRIS_HEAP_DEVICE_LOCAL_PREFERRED:
|
case IRIS_HEAP_DEVICE_LOCAL_PREFERRED:
|
||||||
/* For vram allocations, still use system memory as a fallback. */
|
/* For vram allocations, still use system memory as a fallback. */
|
||||||
regions[num_regions++] = bufmgr->vram.region;
|
regions[num_regions++] = bufmgr->vram.region;
|
||||||
regions[num_regions++] = bufmgr->sys.region;
|
if (!(flags & BO_ALLOC_SCANOUT))
|
||||||
|
regions[num_regions++] = bufmgr->sys.region;
|
||||||
break;
|
break;
|
||||||
case IRIS_HEAP_DEVICE_LOCAL:
|
case IRIS_HEAP_DEVICE_LOCAL:
|
||||||
regions[num_regions++] = bufmgr->vram.region;
|
regions[num_regions++] = bufmgr->vram.region;
|
||||||
|
|||||||
Reference in New Issue
Block a user