diff options
author | Samuel Pitoiset <[email protected]> | 2020-02-17 14:45:47 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2020-02-26 08:09:46 +0100 |
commit | cd6ec2b1abbd96f4456e92613c2232c919bb9023 (patch) | |
tree | 70ad32d7829d37859c2a42322d863a17fee71cc0 /src/amd/vulkan/Makefile.sources | |
parent | f280c00ba6cd3b0d3a01ae2fc3085de89ec867ec (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3872>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3872>
Diffstat (limited to 'src/amd/vulkan/Makefile.sources')
-rw-r--r-- | src/amd/vulkan/Makefile.sources | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/amd/vulkan/Makefile.sources b/src/amd/vulkan/Makefile.sources index 002f2ea1ebe..4b1bca2d879 100644 --- a/src/amd/vulkan/Makefile.sources +++ b/src/amd/vulkan/Makefile.sources @@ -30,6 +30,15 @@ RADV_WS_AMDGPU_FILES := \ winsys/amdgpu/radv_amdgpu_winsys.h \ winsys/amdgpu/radv_amdgpu_winsys_public.h +RADV_WS_NULL_FILES := \ + winsys/null/radv_null_bo.c \ + winsys/null/radv_null_bo.h \ + winsys/null/radv_null_cs.c \ + winsys/null/radv_null_cs.h \ + winsys/null/radv_null_winsys.c \ + winsys/null/radv_null_winsys.h \ + winsys/null/radv_null_winsys_public.h + VULKAN_FILES := \ radv_cmd_buffer.c \ radv_cs.h \ @@ -74,7 +83,8 @@ VULKAN_FILES := \ radv_wsi.c \ si_cmd_buffer.c \ vk_format.h \ - $(RADV_WS_AMDGPU_FILES) + $(RADV_WS_AMDGPU_FILES) \ + $(RADV_WS_NULL_FILES) VULKAN_ANDROID_FILES := \ radv_android.c |