Skip to content

Commit 385c087

Browse files
committed
Add sdk version detection to d3d12 encode.
1 parent f0f46ad commit 385c087

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/configGenerator_build.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,11 @@ void ConfigGenerator::buildReplaceValues(
574574
# define CONFIG_AV1_D3D12VA_HWACCEL 1\n\
575575
#else\n\
576576
# define CONFIG_AV1_D3D12VA_HWACCEL 0\n\
577+
#endif";
578+
replaceValues["CONFIG_D3D12VA_ENCODE"] = "#if CONFIG_D3D12VA && defined(NTDDI_WIN10_NI)\n\
579+
# define CONFIG_D3D12VA_ENCODE 1\n\
580+
#else\n\
581+
# define CONFIG_D3D12VA_ENCODE 0\n\
577582
#endif";
578583
replaceValues["CONFIG_D3D11VA"] = "#if defined(NTDDI_WIN8)\n\
579584
# define CONFIG_D3D11VA 1\n\

0 commit comments

Comments
 (0)