dzn: Define a symbol that was present in older D3D headers
authorJesse Natalie <jenatali@microsoft.com>
Mon, 9 Jan 2023 20:41:46 +0000 (12:41 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 Jan 2023 20:17:42 +0000 (20:17 +0000)
D3D12_BARRIER_SYNC_INPUT_ASSEMBLER was renamed to D3D12_BARRIER_SYNC_INDEX_INPUT,
so conditionally define the old name based on the version of the headers that are
being used.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20617>

src/microsoft/vulkan/dzn_cmd_buffer.c

index 72a69bb..139c0d2 100644 (file)
@@ -28,6 +28,9 @@
 #include "vk_format.h"
 #include "vk_util.h"
 
+#if D3D12_SDK_VERSION >= 608
+static const D3D12_BARRIER_SYNC D3D12_BARRIER_SYNC_INPUT_ASSEMBLER = D3D12_BARRIER_SYNC_INDEX_INPUT;
+#endif
 
 static void
 dzn_cmd_buffer_exec_transition_barriers(struct dzn_cmd_buffer *cmdbuf,