radv: move is_local up to the winsys level.
authorDave Airlie <airlied@redhat.com>
Mon, 6 Nov 2017 04:06:35 +0000 (04:06 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Nov 2017 21:45:59 +0000 (21:45 +0000)
commit201b3b8d0d2359f56d8797867f59047cce5d160d
treecb72bf5c4d795c826bf01b9a2fd5c318a3bca15c
parent25660499b62a60f99ad72807fcc37f9fb622a2ea
radv: move is_local up to the winsys level.

We can avoid adding the buffer in the non-local case, this will
avoid all the overhead of the indirect call.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_radeon_winsys.h
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