mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
anv: warn if system memory is used
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12318>
This commit is contained in:
parent
e610f4b5f2
commit
09c1792d1f
1 changed files with 3 additions and 0 deletions
|
|
@ -1697,6 +1697,9 @@ anv_device_alloc_bo(struct anv_device *device,
|
|||
uint64_t explicit_address,
|
||||
struct anv_bo **bo_out)
|
||||
{
|
||||
if (!(alloc_flags & ANV_BO_ALLOC_LOCAL_MEM))
|
||||
anv_perf_warn(device, NULL, "system memory used");
|
||||
|
||||
if (!device->physical->has_implicit_ccs)
|
||||
assert(!(alloc_flags & ANV_BO_ALLOC_IMPLICIT_CCS));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue