anv: fix memory type requirements for DMABUF with external memory

On systems with local memory, shared buffers through DMABUF should be
placed in system memory.

Typical example is sharing a buffer between 2 GPUs.

Signed-off-by: Lionel Landwerlin <>
Cc: mesa-stable
187 jobs for !19226 with review/anv-no-local-memory-external-buffer in 7 seconds (queued for 10 seconds)
latest merge request