radv: implement a dummy winsys for creating devices without AMDGPU
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Feb 2020 13:45:47 +0000 (14:45 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 26 Feb 2020 07:09:46 +0000 (08:09 +0100)
commitcd6ec2b1abbd96f4456e92613c2232c919bb9023
tree70ad32d7829d37859c2a42322d863a17fee71cc0
parentf280c00ba6cd3b0d3a01ae2fc3085de89ec867ec
radv: implement a dummy winsys for creating devices without AMDGPU

To allow developers to test the compiler backends without having
any AMD GPUs. To create a null device, set eg.
RADV_FORCE_FAMILY=polaris10 in your environment.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3872>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3872>
16 files changed:
docs/envvars.html
src/amd/vulkan/Makefile.sources
src/amd/vulkan/meson.build
src/amd/vulkan/radv_debug.h
src/amd/vulkan/radv_device.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys_public.h
src/amd/vulkan/winsys/null/radv_null_bo.c [new file with mode: 0644]
src/amd/vulkan/winsys/null/radv_null_bo.h [new file with mode: 0644]
src/amd/vulkan/winsys/null/radv_null_cs.c [new file with mode: 0644]
src/amd/vulkan/winsys/null/radv_null_cs.h [new file with mode: 0644]
src/amd/vulkan/winsys/null/radv_null_winsys.c [new file with mode: 0644]
src/amd/vulkan/winsys/null/radv_null_winsys.h [new file with mode: 0644]
src/amd/vulkan/winsys/null/radv_null_winsys_public.h [new file with mode: 0644]