summaryrefslogtreecommitdiff
path: root/src/broadcom/vulkan/meson.build
diff options
context:
space:
mode:
authorSteven Houston <steven@shouston.net>2020-11-04 17:45:10 +0000
committerMarge Bot <eric+marge@anholt.net>2020-11-11 08:36:05 +0000
commitd6a8a6ed4ec659068eedd61d0e10f49a78bd5a21 (patch)
tree562ba5114c39f5cb965624f6ee6c48a1bbf5aa1b /src/broadcom/vulkan/meson.build
parentd186766c08867d5447e32c427ff092612bd4ba92 (diff)
v3dv: VK_KHR_display extension support
When VK_KHR_display is enabled it needs to open the primary node on the vc4/vc5 display device, so pass it to physical_device_init(). Extension functions call through to the wsi_common_display.c implementations. v2: Follow Mesa conventions for comments and char * Refer to vc4 display device in comments. v3: Added Copyright © 2020 Raspberry Pi v4: Test device has primary node when using simulator. v5: Assert that we have a primary device. Fix trailing blank space. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3692 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7515>
Diffstat (limited to 'src/broadcom/vulkan/meson.build')
-rw-r--r--src/broadcom/vulkan/meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/broadcom/vulkan/meson.build b/src/broadcom/vulkan/meson.build
index 29fc4cc665c..58f4bcee989 100644
--- a/src/broadcom/vulkan/meson.build
+++ b/src/broadcom/vulkan/meson.build
@@ -105,6 +105,11 @@ if with_platform_x11
libv3dv_files += files('v3dv_wsi_x11.c')
endif
+if system_has_kms_drm and not with_platform_android
+ v3dv_flags += '-DVK_USE_PLATFORM_DISPLAY_KHR'
+ libv3dv_files += files('v3dv_wsi_display.c')
+endif
+
libvulkan_broadcom = shared_library(
'vulkan_broadcom',
[libv3dv_files, v3dv_entrypoints, v3dv_extensions_c, v3dv_extensions_h, sha1_h],