winsys/amdgpu: set AMDGPU_GEM_CREATE_VM_ALWAYS_VALID if possible v2
authorChristian König <christian.koenig@amd.com>
Tue, 29 Aug 2017 14:45:46 +0000 (16:45 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 31 Aug 2017 12:55:38 +0000 (14:55 +0200)
commit214b565bc28bc4419f3eec29ab7bbe34080459fe
tree9c7a6c9a3d48eb377b6bf6cd7180dda9741b65c0
parent8b3a257851905ff444d981e52938cbf2b36ba830
winsys/amdgpu: set AMDGPU_GEM_CREATE_VM_ALWAYS_VALID if possible v2

When the kernel supports it set the local flag and
stop adding those BOs to the BO list.

Can probably be optimized much more.

v2: rename new flag to AMDGPU_GEM_CREATE_VM_ALWAYS_VALID

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
src/gallium/winsys/amdgpu/drm/amdgpu_bo.h
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c