Skip to content

Commit 2a8081d

Browse files
author
Bud
committed
Added ARM64 Support
- Properly added ARM64 Support
1 parent c89559a commit 2a8081d

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

Virtual Display Driver (HDR)/MttVDD/Driver.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void vddlog(const char* type, const char* message) {
323323
return;
324324
}
325325

326-
string narrow_logPath = WStringToString(logPath); // Convert to narrow string
326+
string narrow_logPath = WStringToString(logPath);
327327
const char* mode = "a";
328328
errno_t err = fopen_s(&logFile, narrow_logPath.c_str(), mode);
329329
if (err == 0 && logFile != nullptr) {
@@ -1231,10 +1231,9 @@ void loadSettings() {
12311231
tie(width, height, refreshRate) = mode;
12321232

12331233
int vsync_num, vsync_den;
1234-
float_to_vsync(refreshRate, vsync_num, vsync_den); // Convert refresh rate to vsync_num and vsync_den
1234+
float_to_vsync(refreshRate, vsync_num, vsync_den);
12351235

1236-
// Use the correct type for vsync_num and vsync_den (int, int)
1237-
res.push_back(make_tuple(width, height, vsync_num, vsync_den)); // Add the tuple with vsync values
1236+
res.push_back(make_tuple(width, height, vsync_num, vsync_den));
12381237

12391238
stringstream ss;
12401239
ss << "Resolution: " << width << "x" << height << " @ " << vsync_num << "/" << vsync_den << "Hz";

Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,20 @@
156156
<UMDF_VERSION_MAJOR>2</UMDF_VERSION_MAJOR>
157157
<IndirectDisplayDriver>true</IndirectDisplayDriver>
158158
<IDDCX_VERSION_MAJOR>1</IDDCX_VERSION_MAJOR>
159-
<IDDCX_VERSION_MINOR>0</IDDCX_VERSION_MINOR>
159+
<IDDCX_VERSION_MINOR>10</IDDCX_VERSION_MINOR>
160+
<Driver_SpectreMitigation>Spectre</Driver_SpectreMitigation>
161+
<UMDF_VERSION_MINOR>25</UMDF_VERSION_MINOR>
160162
</PropertyGroup>
161163
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
162164
<TargetVersion>Windows10</TargetVersion>
163165
<UseDebugLibraries>false</UseDebugLibraries>
164166
<UMDF_VERSION_MAJOR>2</UMDF_VERSION_MAJOR>
165167
<IndirectDisplayDriver>true</IndirectDisplayDriver>
166168
<IDDCX_VERSION_MAJOR>1</IDDCX_VERSION_MAJOR>
167-
<IDDCX_VERSION_MINOR>0</IDDCX_VERSION_MINOR>
169+
<IDDCX_VERSION_MINOR>10</IDDCX_VERSION_MINOR>
170+
<Driver_SpectreMitigation>Spectre</Driver_SpectreMitigation>
171+
<UMDF_VERSION_MINOR>25</UMDF_VERSION_MINOR>
172+
<UMDF_MINIMUM_VERSION_REQUIRED>25</UMDF_MINIMUM_VERSION_REQUIRED>
168173
</PropertyGroup>
169174
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
170175
<ImportGroup Label="ExtensionSettings">
@@ -203,10 +208,12 @@
203208
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
204209
<DebuggerFlavor>DbgengRemoteDebugger</DebuggerFlavor>
205210
<RunCodeAnalysis>true</RunCodeAnalysis>
211+
<Inf2CatUseLocalTime>true</Inf2CatUseLocalTime>
206212
</PropertyGroup>
207213
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
208214
<DebuggerFlavor>DbgengRemoteDebugger</DebuggerFlavor>
209215
<RunCodeAnalysis>true</RunCodeAnalysis>
216+
<Inf2CatUseLocalTime>true</Inf2CatUseLocalTime>
210217
</PropertyGroup>
211218
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
212219
<ClCompile>
@@ -306,10 +313,22 @@
306313
<WppScanConfigurationData Condition="'%(ClCompile.ScanConfigurationData)' == ''">trace.h</WppScanConfigurationData>
307314
<ExceptionHandling>Async</ExceptionHandling>
308315
<EnablePREfast>true</EnablePREfast>
316+
<AdditionalOptions>/D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=4 /DIDDCX_MINIMUM_VERSION_REQUIRED=4 %(AdditionalOptions)</AdditionalOptions>
317+
<AdditionalIncludeDirectories>$(ProjectDir)..\..\Common\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
318+
<LanguageStandard>stdcpp17</LanguageStandard>
309319
</ClCompile>
310320
<Link>
311321
<AdditionalDependencies>%(AdditionalDependencies);OneCoreUAP.lib;avrt.lib</AdditionalDependencies>
312322
</Link>
323+
<DriverSign>
324+
<FileDigestAlgorithm>SHA1</FileDigestAlgorithm>
325+
</DriverSign>
326+
<PostBuildEvent>
327+
<Command>copy "$(ProjectDir)..\vdd_settings.xml" "$(TargetDir)\MttVDD"</Command>
328+
</PostBuildEvent>
329+
<Inf>
330+
<DateStamp>10/16/2024</DateStamp>
331+
</Inf>
313332
</ItemDefinitionGroup>
314333
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
315334
<ClCompile>
@@ -318,10 +337,21 @@
318337
<WppScanConfigurationData Condition="'%(ClCompile.ScanConfigurationData)' == ''">trace.h</WppScanConfigurationData>
319338
<ExceptionHandling>Async</ExceptionHandling>
320339
<EnablePREfast>true</EnablePREfast>
340+
<AdditionalOptions>/D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=10 /DIDDCX_MINIMUM_VERSION_REQUIRED=3 %(AdditionalOptions)</AdditionalOptions>
341+
<AdditionalIncludeDirectories>$(ProjectDir)..\..\Common\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
321342
</ClCompile>
322343
<Link>
323344
<AdditionalDependencies>%(AdditionalDependencies);OneCoreUAP.lib;avrt.lib</AdditionalDependencies>
324345
</Link>
346+
<DriverSign>
347+
<FileDigestAlgorithm>SHA256</FileDigestAlgorithm>
348+
</DriverSign>
349+
<PostBuildEvent>
350+
<Command>copy "$(ProjectDir)..\vdd_settings.xml" "$(TargetDir)\MttVDD"</Command>
351+
</PostBuildEvent>
352+
<Inf>
353+
<DateStamp>10/16/2024</DateStamp>
354+
</Inf>
325355
</ItemDefinitionGroup>
326356
<ItemGroup>
327357
<FilesToPackage Include="$(TargetPath)" />

0 commit comments

Comments
 (0)