iris/bufmgr: Add assert and TODO comment for future small BAR uapi
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17349>
This commit is contained in:
parent
d9ce788641
commit
85099804bf
|
@ -997,6 +997,12 @@ alloc_fresh_bo(struct iris_bufmgr *bufmgr, uint64_t bo_size, unsigned flags)
|
|||
.extensions = (uintptr_t)&ext_regions,
|
||||
};
|
||||
|
||||
/* TODO: Add I915_GEM_CREATE_EXT_FLAG_NEEDS_CPU_ACCESS to create.flags
|
||||
* for IRIS_HEAP_DEVICE_LOCAL_PREFERRED when small BAR uapi is
|
||||
* stabilized.
|
||||
*/
|
||||
assert(bufmgr->all_vram_mappable);
|
||||
|
||||
/* It should be safe to use GEM_CREATE_EXT without checking, since we are
|
||||
* in the side of the branch where discrete memory is available. So we
|
||||
* can assume GEM_CREATE_EXT is supported already.
|
||||
|
|
Loading…
Reference in New Issue