radv: add support for local bos. (v3)
authorDave Airlie <airlied@redhat.com>
Wed, 25 Oct 2017 06:12:13 +0000 (07:12 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 26 Oct 2017 22:59:28 +0000 (23:59 +0100)
commita639d40f1330351924d736ca260de764734f9ef7
treec956d7a20d93df16636576d873e4c85d1ed200fc
parent39c5c12f8fbee9eec26a627f247d1f3ef7d4bf39
radv: add support for local bos. (v3)

This uses the new kernel interfaces for reduced cs overhead,
We only set the local flag for memory allocations that don't have
 a dedicated allocation and ones that aren't imports.

v2: add to all the internal buffer creation paths.
v3: missed some command submission paths, handle 0/empty bo lists.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_debug.c
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_query.c
src/amd/vulkan/radv_radeon_winsys.h
src/amd/vulkan/radv_shader.c
src/amd/vulkan/si_cmd_buffer.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c