diff --git a/.github/workflows/ci-validation.yml b/.github/workflows/ci-validation.yml index 1fd8de7..b1c5079 100644 --- a/.github/workflows/ci-validation.yml +++ b/.github/workflows/ci-validation.yml @@ -42,8 +42,7 @@ permissions: jobs: build: if: inputs.control_ref == '' - # The WDK driver build is validated against VS 2022; windows-latest is moving to VS 2026. - runs-on: windows-2022 + runs-on: windows-2025-vs2026 strategy: fail-fast: false matrix: @@ -58,13 +57,25 @@ jobs: - name: Setup MSBuild uses: microsoft/setup-msbuild@30375c66a4eea26614e0d39710365f22f8b0af57 # v3.0.0 + with: + msbuild-architecture: x64 - - name: Install Windows Driver Kit (IddCx headers) + - name: Install the Windows 28000 SDK and WDK shell: pwsh run: | $ErrorActionPreference = "Stop" - choco install windowsdriverkit11 -y --no-progress - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $sdk = Join-Path $env:RUNNER_TEMP "winsdksetup-28000.exe" + $wdk = Join-Path $env:RUNNER_TEMP "wdksetup-28000.exe" + Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?linkid=2382519" -OutFile $sdk + Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2388152" -OutFile $wdk + foreach ($installer in @($sdk, $wdk)) { + $signature = Get-AuthenticodeSignature -FilePath $installer + if ($signature.Status -ne "Valid" -or $signature.SignerCertificate.Subject -notmatch "CN=Microsoft Corporation") { + throw "Invalid Microsoft installer signature: $installer" + } + $process = Start-Process -FilePath $installer -ArgumentList @("/quiet", "/norestart") -Wait -PassThru + if ($process.ExitCode -notin @(0, 3010)) { throw "Installer returned $($process.ExitCode): $installer" } + } - name: Detect matching Windows SDK and WDK headers shell: pwsh @@ -92,7 +103,7 @@ jobs: Where-Object { $_.Name -match '^\d+\.\d+\.\d+\.\d+$' } | Where-Object { (Test-Path (Join-Path $_.FullName "um\Windows.h")) -and - (Test-Path (Join-Path $_.FullName "um\iddcx\1.10\IddCx.h")) + (Test-Path (Join-Path $_.FullName "um\iddcx\1.11\IddCx.h")) } | Sort-Object { [version]$_.Name } -Descending | Select-Object -First 1 diff --git a/Virtual Display Driver (HDR)/MttVDD/Driver.cpp b/Virtual Display Driver (HDR)/MttVDD/Driver.cpp index f02a43c..9190e56 100644 --- a/Virtual Display Driver (HDR)/MttVDD/Driver.cpp +++ b/Virtual Display Driver (HDR)/MttVDD/Driver.cpp @@ -13,6 +13,7 @@ Copyright (c) Microsoft Corporation --*/ #include "Driver.h" +#include "VirtualMonitorI2c.h" //#include "Driver.tmh" #include #include @@ -39,6 +40,9 @@ Copyright (c) Microsoft Corporation #include #include #include +#include +#include +#include @@ -48,6 +52,7 @@ Copyright (c) Microsoft Corporation #pragma comment(lib, "xmllite.lib") #pragma comment(lib, "shlwapi.lib") +#pragma comment(lib, "d3d12.lib") HANDLE hPipeThread = NULL; bool g_Running = true; @@ -82,6 +87,9 @@ EVT_IDD_CX_MONITOR_QUERY_TARGET_MODES2 VirtualDisplayDriverEvtIddCxMonitorQueryT EVT_IDD_CX_ADAPTER_COMMIT_MODES2 VirtualDisplayDriverEvtIddCxAdapterCommitModes2; EVT_IDD_CX_MONITOR_SET_GAMMA_RAMP VirtualDisplayDriverEvtIddCxMonitorSetGammaRamp; +EVT_IDD_CX_MONITOR_I2C_TRANSMIT VirtualDisplayDriverI2cTransmit; +EVT_IDD_CX_MONITOR_I2C_RECEIVE VirtualDisplayDriverI2cReceive; +EVT_IDD_CX_MONITOR_I2C_TRANSMIT_AND_RECEIVE VirtualDisplayDriverI2cTransmitAndReceive; struct { @@ -97,6 +105,10 @@ bool debugLogs = false; bool HDRPlus = false; bool SDR10 = false; bool customEdid = false; +bool customDisplayId = false; +bool d3d12SwapChain = true; +bool virtualI2c = false; +unsigned int initialDesktopReencodeFrameCount = 0; bool hardwareCursor = false; bool preventManufacturerSpoof = false; bool edidCeaOverride = false; @@ -106,6 +118,65 @@ constexpr DISPLAYCONFIG_VIDEO_SIGNAL_INFO dispinfo(UINT32 h, UINT32 v, UINT32 rn namespace { + std::atomic g_IddCx111Features{0}; + std::atomic g_DesktopReencodeFrameCount{0}; + std::mutex g_ReencodeEventsMutex; + std::set g_ReencodeEvents; + + void DetectIddCx111Features() + { + static const auto features = [] { + IDARG_OUT_FEATURES_SUPPORTED supported{}; + supported.Size = sizeof(supported); + if (IDD_IS_FUNCTION_AVAILABLE(IddCxCheckOsFeatureSupport) && + NT_SUCCESS(IddCxCheckOsFeatureSupport(&supported))) { + return static_cast(supported.Features_1_11); + } + return 0u; + }(); + g_IddCx111Features.store(features); + } + + bool HasIddCx111Feature(IDDCX_DEVICE_FEATURES_1_11 feature) + { + return (g_IddCx111Features.load() & static_cast(feature)) != 0; + } + + bool IsPipeClientAdministrator(HANDLE pipe) + { + if (!ImpersonateNamedPipeClient(pipe)) { + return false; + } + + alignas(DWORD) BYTE administrators[SECURITY_MAX_SID_SIZE]; + DWORD sidSize = sizeof(administrators); + BOOL isMember = FALSE; + const bool checked = CreateWellKnownSid(WinBuiltinAdministratorsSid, nullptr, administrators, &sidSize) && + CheckTokenMembership(nullptr, administrators, &isMember); + if (!RevertToSelf()) { + RaiseFailFastException(nullptr, nullptr, 0); + } + return checked && isMember; + } + + bool SetDesktopReencodeFrameCount(const std::wstring& value) + { + if (value.empty() || value.find_first_not_of(L"0123456789") != std::wstring::npos) { + return false; + } + errno = 0; + const auto count = std::wcstoul(value.c_str(), nullptr, 10); + if (errno == ERANGE || count > UINT_MAX) { + return false; + } + std::lock_guard lock(g_ReencodeEventsMutex); + g_DesktopReencodeFrameCount.store(static_cast(count)); + for (const auto event : g_ReencodeEvents) { + SetEvent(event); + } + return true; + } + void RebuildKnownMonitorModesCache() { s_KnownMonitorModes2.clear(); @@ -198,6 +269,10 @@ std::map> SettingsQueryMap = {L"LoggingEnabled", {L"LOGS", L"logging"}}, {L"DebugLoggingEnabled", {L"DEBUGLOGS", L"debuglogging"}}, {L"CustomEdidEnabled", {L"CUSTOMEDID", L"CustomEdid"}}, + {L"CustomDisplayIdEnabled", {L"CUSTOMDISPLAYID", L"CustomDisplayId"}}, + {L"D3D12SwapChainEnabled", {L"D3D12SWAPCHAIN", L"D3D12SwapChain"}}, + {L"VirtualI2cEnabled", {L"VIRTUALI2C", L"VirtualI2c"}}, + {L"StaticDesktopReencodeFrameCount", {L"STATICDESKTOPREENCODEFRAMECOUNT", L"StaticDesktopReencodeFrameCount"}}, {L"PreventMonitorSpoof", {L"PREVENTMONITORSPOOF", L"PreventSpoof"}}, {L"EdidCeaOverride", {L"EDIDCEAOVERRIDE", L"EdidCeaOverride"}}, @@ -305,6 +380,7 @@ vector Microsoft::IndirectDisp::IndirectDeviceContext::s_KnownMon struct IndirectDeviceContextWrapper { IndirectDeviceContext* pContext; + VirtualMonitorI2c* i2c; void Cleanup() { @@ -312,6 +388,34 @@ struct IndirectDeviceContextWrapper pContext = nullptr; } }; + +WDF_DECLARE_CONTEXT_TYPE(IndirectDeviceContextWrapper); + +_Use_decl_annotations_ +NTSTATUS VirtualDisplayDriverI2cTransmit(IDDCX_MONITOR monitor, const IDARG_IN_I2C_TRANSMIT* args) +{ + auto* i2c = WdfObjectGet_IndirectDeviceContextWrapper(monitor)->i2c; + return i2c && i2c->Transmit(args->SevenBitI2CAddress, args->pData, args->DataSizeInBytes) + ? STATUS_SUCCESS : STATUS_NOT_SUPPORTED; +} + +_Use_decl_annotations_ +NTSTATUS VirtualDisplayDriverI2cReceive(IDDCX_MONITOR monitor, const IDARG_IN_I2C_RECEIVE* args) +{ + auto* i2c = WdfObjectGet_IndirectDeviceContextWrapper(monitor)->i2c; + return i2c && !args->Flags && i2c->Receive(args->SevenBitI2CAddress, args->pData, args->DataSizeInBytes) + ? STATUS_SUCCESS : STATUS_NOT_SUPPORTED; +} + +_Use_decl_annotations_ +NTSTATUS VirtualDisplayDriverI2cTransmitAndReceive(IDDCX_MONITOR monitor, const IDARG_IN_I2C_TRANSMIT_AND_RECEIVE* args) +{ + auto* i2c = WdfObjectGet_IndirectDeviceContextWrapper(monitor)->i2c; + return i2c && !args->ReceiveFlags && + i2c->TransmitAndReceive(args->TransmitSevenBitI2CAddress, args->pTransmitData, args->TransmitDataSizeInBytes, + args->ReceiveSevenBitI2CAddress, args->pReceiveData, args->ReceiveDataSizeInBytes) + ? STATUS_SUCCESS : STATUS_NOT_SUPPORTED; +} void LogQueries(const char* severity, const std::wstring& xmlName) { if (xmlName.find(L"logging") == std::wstring::npos) { int size_needed = WideCharToMultiByte(CP_UTF8, 0, xmlName.c_str(), (int)xmlName.size(), NULL, 0, NULL, NULL); @@ -332,11 +436,11 @@ string WStringToString(const wstring& wstr) { //basically just a function for co return str; } -bool EnabledQuery(const std::wstring& settingKey) { +bool EnabledQuery(const std::wstring& settingKey, bool defaultValue = false) { auto it = SettingsQueryMap.find(settingKey); if (it == SettingsQueryMap.end()) { vddlog("e", "requested data not found in xml, consider updating xml!"); - return false; + return defaultValue; } std::wstring regName = it->second.first; @@ -386,25 +490,25 @@ bool EnabledQuery(const std::wstring& settingKey) { HRESULT hr = SHCreateStreamOnFileEx(settingsname.c_str(), STGM_READ, FILE_ATTRIBUTE_NORMAL, FALSE, nullptr, &pFileStream); if (FAILED(hr)) { LogQueries("d", xmlName + L" - Failed to create file stream for XML settings."); - return false; + return defaultValue; } CComPtr pReader; hr = CreateXmlReader(__uuidof(IXmlReader), (void**)&pReader, nullptr); if (FAILED(hr)) { LogQueries("d", xmlName + L" - Failed to create XML reader."); - return false; + return defaultValue; } hr = pReader->SetInput(pFileStream); if (FAILED(hr)) { LogQueries("d", xmlName + L" - Failed to set input for XML reader."); - return false; + return defaultValue; } XmlNodeType nodeType; const wchar_t* pwszLocalName; - bool xmlLoggingValue = false; + bool xmlLoggingValue = defaultValue; while (S_OK == pReader->Read(&nodeType)) { if (nodeType == XmlNodeType_Element) { @@ -1630,7 +1734,6 @@ void InitializeD3DDeviceAndLogGPU() { // This macro creates the methods for accessing an IndirectDeviceContextWrapper as a context for a WDF object -WDF_DECLARE_CONTEXT_TYPE(IndirectDeviceContextWrapper); extern "C" BOOL WINAPI DllMain( _In_ HINSTANCE hInstance, @@ -2248,6 +2351,25 @@ void HandleClient(HANDLE hPipe) { WriteFile(hPipe, settingsResponse.c_str(), bytesToWrite, &bytesWritten, NULL); } + else if (bufferwstr == L"GETIDDCXFEATURES") { + const bool atomicI2c = IDD_IS_FIELD_AVAILABLE(IDD_CX_CLIENT_CONFIG, EvtIddCxMonitorI2CTransmitAndReceive); + SendToPipe("IDDCX_FEATURES " + std::to_string(g_IddCx111Features.load()) + " I2C " + (atomicI2c ? "1" : "0")); + } + else if (bufferwstr.rfind(L"SETREENCODECOUNT ", 0) == 0) { + if (!HasIddCx111Feature(IDDCX_DEVICE_FEATURES_1_11_UPDATE_REENCODE_COUNT) || + !IDD_IS_FUNCTION_AVAILABLE(IddCxSwapChainUpdateStaticDesktopReencodeFrameCount)) { + SendToPipe("ERROR IDDCX_REENCODE_UNAVAILABLE"); + } + else if (!IsPipeClientAdministrator(hPipe)) { + SendToPipe("ERROR REENCODECOUNT_ACCESS_DENIED"); + } + else if (SetDesktopReencodeFrameCount(bufferwstr.substr(17))) { + SendToPipe("QUEUED REENCODECOUNT"); + } + else { + SendToPipe("ERROR INVALID_REENCODECOUNT"); + } + } else if (wcsncmp(buffer, L"PING", 4) == 0) { SendToPipe("PONG"); vddlog("p", "Heartbeat Ping"); @@ -2419,6 +2541,11 @@ extern "C" NTSTATUS DriverEntry( debugLogs = EnabledQuery(L"DebugLoggingEnabled"); customEdid = EnabledQuery(L"CustomEdidEnabled"); + customDisplayId = EnabledQuery(L"CustomDisplayIdEnabled"); + d3d12SwapChain = EnabledQuery(L"D3D12SwapChainEnabled", true); + virtualI2c = EnabledQuery(L"VirtualI2cEnabled"); + initialDesktopReencodeFrameCount = static_cast(max(0, GetIntegerSetting(L"StaticDesktopReencodeFrameCount"))); + g_DesktopReencodeFrameCount.store(initialDesktopReencodeFrameCount); preventManufacturerSpoof = EnabledQuery(L"PreventMonitorSpoof"); edidCeaOverride = EnabledQuery(L"EdidCeaOverride"); sendLogsThroughPipe = EnabledQuery(L"SendLogsThroughPipe"); @@ -2860,6 +2987,11 @@ NTSTATUS VirtualDisplayDriverDeviceAdd(WDFDRIVER Driver, PWDFDEVICE_INIT pDevice IddConfig.EvtIddCxMonitorGetDefaultDescriptionModes = VirtualDisplayDriverMonitorGetDefaultModes; IddConfig.EvtIddCxMonitorAssignSwapChain = VirtualDisplayDriverMonitorAssignSwapChain; IddConfig.EvtIddCxMonitorUnassignSwapChain = VirtualDisplayDriverMonitorUnassignSwapChain; + if (virtualI2c && IDD_IS_FIELD_AVAILABLE(IDD_CX_CLIENT_CONFIG, EvtIddCxMonitorI2CTransmitAndReceive)) { + IddConfig.EvtIddCxMonitorI2CTransmit = VirtualDisplayDriverI2cTransmit; + IddConfig.EvtIddCxMonitorI2CReceive = VirtualDisplayDriverI2cReceive; + IddConfig.EvtIddCxMonitorI2CTransmitAndReceive = VirtualDisplayDriverI2cTransmitAndReceive; + } if (IDD_IS_FIELD_AVAILABLE(IDD_CX_CLIENT_CONFIG, EvtIddCxAdapterQueryTargetInfo)) { @@ -3098,6 +3230,7 @@ SwapChainProcessor::SwapChainProcessor(IDDCX_SWAPCHAIN hSwapChain, shared_ptr lock(g_ReencodeEventsMutex); + g_ReencodeEvents.insert(m_hReencodeChangeEvent.Get()); + } + } + // Immediately create and run the swap-chain processing thread, passing 'this' as the thread parameter m_hThread.Attach(CreateThread(nullptr, 0, RunThread, this, 0, nullptr)); if (!m_hThread.Get()) @@ -3124,6 +3266,11 @@ SwapChainProcessor::SwapChainProcessor(IDDCX_SWAPCHAIN hSwapChain, shared_ptr lock(g_ReencodeEventsMutex); + g_ReencodeEvents.erase(m_hReencodeChangeEvent.Get()); + } + stringstream logStream; logStream << "Destructing SwapChainProcessor:"; @@ -3268,29 +3415,41 @@ void SwapChainProcessor::RunCore() int retryCount = 0; const int maxRetries = 5; - // Get the DXGI device interface - ComPtr DxgiDevice; - HRESULT hr = m_Device->Device.As(&DxgiDevice); - if (FAILED(hr)) - { - logStream << "Failed to get DXGI device interface. HRESULT: " << hr; - vddlog("e", logStream.str().c_str()); - return; + ComPtr d3d12Device; + ComPtr d3d12Queue; + HRESULT hr = E_NOINTERFACE; + if (d3d12SwapChain && HasIddCx111Feature(IDDCX_DEVICE_FEATURES_1_11_D3D12) && + IDD_IS_FUNCTION_AVAILABLE(IddCxSwapChainSetDevice2) && + IDD_IS_FUNCTION_AVAILABLE(IddCxSwapChainReleaseAndAcquireBuffer2)) { + hr = D3D12CreateDevice(m_Device->Adapter.Get(), D3D_FEATURE_LEVEL_11_0, IID_PPV_ARGS(&d3d12Device)); + if (SUCCEEDED(hr)) { + D3D12_COMMAND_QUEUE_DESC desc{}; + desc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT; + hr = d3d12Device->CreateCommandQueue(&desc, IID_PPV_ARGS(&d3d12Queue)); + } + if (SUCCEEDED(hr)) { + IDARG_IN_SWAPCHAINSETDEVICE2 setDevice{}; + setDevice.Type = IDDCX_SWAPCHAIN_DEVICE_TYPE_D3D12; + setDevice.Device.pD3d12Device = d3d12Device.Get(); + hr = IddCxSwapChainSetDevice2(m_hSwapChain, &setDevice); + } + if (SUCCEEDED(hr)) { + vddlog("i", "IddCx swap chain is using Direct3D 12."); + } + else { + d3d12Queue.Reset(); + d3d12Device.Reset(); + vddlog("w", "Direct3D 12 swap chain setup failed. Trying Direct3D 11."); + } } - logStream << "DXGI device interface obtained successfully."; - //vddlog("d", logStream.str().c_str()); - - - // Validate that our device is still valid before setting it - if (!m_Device || !m_Device->Device) { - vddlog("e", "Direct3DDevice became invalid during SwapChain processing"); - return; + if (!d3d12Queue) { + ComPtr dxgiDevice; + hr = m_Device->Device.As(&dxgiDevice); + if (SUCCEEDED(hr)) { + IDARG_IN_SWAPCHAINSETDEVICE setDevice{dxgiDevice.Get()}; + hr = IddCxSwapChainSetDevice(m_hSwapChain, &setDevice); + } } - - IDARG_IN_SWAPCHAINSETDEVICE SetDevice = {}; - SetDevice.pDevice = DxgiDevice.Get(); - - hr = IddCxSwapChainSetDevice(m_hSwapChain, &SetDevice); logStream.str(""); if (FAILED(hr)) { @@ -3305,67 +3464,72 @@ void SwapChainProcessor::RunCore() logStream << "Starting buffer acquisition and release loop."; //vddlog("d", logStream.str().c_str()); - // Acquire and release buffers in a loop + UINT lastReencodeRequest = initialDesktopReencodeFrameCount; + HANDLE waitHandles[3]{m_hTerminateEvent.Get()}; + DWORD waitHandleCount = 1; + if (m_hAvailableBufferEvent && m_hAvailableBufferEvent != INVALID_HANDLE_VALUE) { + waitHandles[waitHandleCount++] = m_hAvailableBufferEvent; + } + if (m_hReencodeChangeEvent.Get()) { + waitHandles[waitHandleCount++] = m_hReencodeChangeEvent.Get(); + } + for (;;) { - ComPtr AcquiredBuffer; + if (WaitForSingleObject(m_hTerminateEvent.Get(), 0) == WAIT_OBJECT_0) { + break; + } + if (m_hReencodeChangeEvent.Get()) { + const UINT count = g_DesktopReencodeFrameCount.load(); + if (count != lastReencodeRequest) { + const auto result = IddCxSwapChainUpdateStaticDesktopReencodeFrameCount(m_hSwapChain, count); + lastReencodeRequest = count; + vddlog(SUCCEEDED(result) ? "i" : "w", + ("IddCx swap chain reencode count " + std::to_string(count) + ", HRESULT " + std::to_string(result)).c_str()); + } + } - // Ask for the next buffer from the producer - IDARG_IN_RELEASEANDACQUIREBUFFER2 BufferInArgs = {}; - BufferInArgs.Size = sizeof(BufferInArgs); - IDXGIResource* pSurface; + IDXGIResource* dxgiSurface = nullptr; + ID3D12Resource* d3d12Surface = nullptr; if (IDD_IS_FUNCTION_AVAILABLE(IddCxSwapChainReleaseAndAcquireBuffer2)) { + IDARG_IN_RELEASEANDACQUIREBUFFER2 BufferInArgs = {}; + BufferInArgs.Size = d3d12Queue ? sizeof(BufferInArgs) : offsetof(IDARG_IN_RELEASEANDACQUIREBUFFER2, pD3D12CommandQueue); + BufferInArgs.pD3D12CommandQueue = d3d12Queue.Get(); IDARG_OUT_RELEASEANDACQUIREBUFFER2 Buffer = {}; + if (d3d12Queue) { + Buffer.MetaData.Size = sizeof(Buffer.MetaData); + } hr = IddCxSwapChainReleaseAndAcquireBuffer2(m_hSwapChain, &BufferInArgs, &Buffer); - pSurface = Buffer.MetaData.pSurface; + if (Buffer.MetaData.ValidFlags & IDDCX_METADATA2_VALID_FLAGS_D3D12_SURFACE) { + d3d12Surface = Buffer.MetaData.pD3D12Surface; + } + else { + dxgiSurface = Buffer.MetaData.pSurface; + } } else { IDARG_OUT_RELEASEANDACQUIREBUFFER Buffer = {}; hr = IddCxSwapChainReleaseAndAcquireBuffer(m_hSwapChain, &Buffer); - pSurface = Buffer.MetaData.pSurface; + dxgiSurface = Buffer.MetaData.pSurface; } // AcquireBuffer immediately returns STATUS_PENDING if no buffer is yet available logStream.str(""); if (hr == E_PENDING) { - HANDLE waitHandles[2] = {}; - DWORD waitHandleCount = 0; - - if (m_hAvailableBufferEvent != nullptr && m_hAvailableBufferEvent != INVALID_HANDLE_VALUE) - { - waitHandles[waitHandleCount++] = m_hAvailableBufferEvent; - } - - if (m_hTerminateEvent.Get()) - { - waitHandles[waitHandleCount++] = m_hTerminateEvent.Get(); - } - - if (waitHandleCount == 0) - { - vddlog("e", "No valid wait handles available while waiting for the next frame."); - break; - } - DWORD WaitResult = WaitForMultipleObjects(waitHandleCount, waitHandles, FALSE, INFINITE); logStream << "Buffer acquisition pending. WaitResult: " << WaitResult; if (WaitResult == WAIT_OBJECT_0) - { - continue; - } - else if (waitHandleCount > 1 && WaitResult == WAIT_OBJECT_0 + 1) { logStream << "Terminate event signaled. Exiting loop."; break; } - else if (waitHandleCount == 1 && waitHandles[0] == m_hTerminateEvent.Get() && WaitResult == WAIT_OBJECT_0) + else if (WaitResult < WAIT_OBJECT_0 + waitHandleCount) { - logStream << "Terminate event signaled. Exiting loop."; - break; + continue; } else { @@ -3381,21 +3545,12 @@ void SwapChainProcessor::RunCore() retryDelay = 1; retryCount = 0; - AcquiredBuffer.Attach(pSurface); - - // ============================== - // TODO: Process the frame here - // - // This is the most performance-critical section of code in an IddCx driver. It's important that whatever - // is done with the acquired surface be finished as quickly as possible. This operation could be: - // * a GPU copy to another buffer surface for later processing (such as a staging surface for mapping to CPU memory) - // * a GPU encode operation - // * a GPU VPBlt to another surface - // * a GPU custom compute shader encode operation - // ============================== - - AcquiredBuffer.Reset(); - //vddlog("d", "Reset buffer"); + if (d3d12Surface) { + d3d12Surface->Release(); + } + if (dxgiSurface) { + dxgiSurface->Release(); + } hr = IddCxSwapChainFinishedProcessingFrame(m_hSwapChain); if (FAILED(hr)) { @@ -3527,7 +3682,11 @@ vector loadEdid(const string& filePath) { return hardcodedEdid; } - streamsize size = file.tellg(); + const streamsize size = file.tellg(); + if (size < 128 || size > 128 * 256 || size % 128 != 0) { + vddlog("w", "Custom EDID has an invalid size. Using the default EDID."); + return hardcodedEdid; + } file.seekg(0, ios::beg); vector buffer(size); @@ -3562,6 +3721,26 @@ vector loadEdid(const string& filePath) { } } +static vector LoadDisplayId() +{ + const std::filesystem::path path = std::filesystem::path(confpath) / L"user_displayid.bin"; + std::ifstream file(path, std::ios::binary | std::ios::ate); + const auto length = file ? static_cast(file.tellg()) : 0; + if (length < 5 || length > 64 * 1024) { + vddlog("w", "DisplayID file is missing or has an invalid size. Using EDID."); + return {}; + } + file.seekg(0); + vector data(static_cast(length)); + constexpr BYTE edidSignature[] = {0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00}; + if (!file.read(reinterpret_cast(data.data()), static_cast(length)) || + (data.size() >= sizeof(edidSignature) && std::equal(std::begin(edidSignature), std::end(edidSignature), data.begin()))) { + vddlog("w", "Expected a standalone DisplayID descriptor. Using EDID."); + return {}; + } + return data; +} + int maincalc() { vector edid = loadEdid(WStringToString(confpath) + "\\user_edid.bin"); @@ -3628,7 +3807,11 @@ IndirectDeviceContext::~IndirectDeviceContext() void IndirectDeviceContext::InitAdapter() { + DetectIddCx111Features(); maincalc(); + if (customDisplayId && HasIddCx111Feature(IDDCX_DEVICE_FEATURES_1_11_DISPLAY_ID_ONLY)) { + m_DisplayId = LoadDisplayId(); + } stringstream logStream; // ============================== @@ -3644,6 +3827,7 @@ void IndirectDeviceContext::InitAdapter() IDDCX_ADAPTER_CAPS AdapterCaps = {}; AdapterCaps.Size = sizeof(AdapterCaps); + AdapterCaps.StaticDesktopReencodeFrameCount = initialDesktopReencodeFrameCount; if (IDD_IS_FUNCTION_AVAILABLE(IddCxSwapChainReleaseAndAcquireBuffer2)) { AdapterCaps.Flags = IDDCX_ADAPTER_FLAGS_CAN_PROCESS_FP16; @@ -3724,95 +3908,69 @@ void IndirectDeviceContext::FinishInit() } } -void IndirectDeviceContext::CreateMonitor(unsigned int index) { - wstring logMessage = L"Creating Monitor: " + to_wstring(index + 1); - string narrowLogMessage = WStringToString(logMessage); - vddlog("i", narrowLogMessage.c_str()); - - // ============================== - // TODO: In a real driver, the EDID should be retrieved dynamically from a connected physical monitor. The EDID - // provided here is purely for demonstration, as it describes only 640x480 @ 60 Hz and 800x600 @ 60 Hz. Monitor - // manufacturers are required to correctly fill in physical monitor attributes in order to allow the OS to optimize - // settings like viewing distance and scale factor. Manufacturers should also use a unique serial number every - // single device to ensure the OS can tell the monitors apart. - // ============================== - - WDF_OBJECT_ATTRIBUTES Attr; - WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&Attr, IndirectDeviceContextWrapper); - - IDDCX_MONITOR_INFO MonitorInfo = {}; - MonitorInfo.Size = sizeof(MonitorInfo); - MonitorInfo.MonitorType = DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI; - MonitorInfo.ConnectorIndex = index; - MonitorInfo.MonitorDescription.Size = sizeof(MonitorInfo.MonitorDescription); - MonitorInfo.MonitorDescription.Type = IDDCX_MONITOR_DESCRIPTION_TYPE_EDID; - //MonitorInfo.MonitorDescription.DataSize = sizeof(s_KnownMonitorEdid); can no longer use size of as converted to vector - if (s_KnownMonitorEdid.size() > UINT_MAX) - { - vddlog("e", "Edid size passes UINT_Max, escape to prevent loading borked display"); - } - else - { - MonitorInfo.MonitorDescription.DataSize = static_cast(s_KnownMonitorEdid.size()); - } - //MonitorInfo.MonitorDescription.pData = const_cast(s_KnownMonitorEdid); - // Changed from using const_cast to data() to safely access the EDID data. - // This improves type safety and code readability, as it eliminates the need for casting - // and ensures we are directly working with the underlying container of known monitor EDID data. - MonitorInfo.MonitorDescription.pData = IndirectDeviceContext::s_KnownMonitorEdid.data(); - - - - - - - // ============================== - // TODO: The monitor's container ID should be distinct from "this" device's container ID if the monitor is not - // permanently attached to the display adapter device object. The container ID is typically made unique for each - // monitor and can be used to associate the monitor with other devices, like audio or input devices. In this - // sample we generate a random container ID GUID, but it's best practice to choose a stable container ID for a - // unique monitor or to use "this" device's container ID for a permanent/integrated monitor. - // ============================== - - // Create a container ID - CoCreateGuid(&MonitorInfo.MonitorContainerId); - vddlog("d", "Created container ID"); - - IDARG_IN_MONITORCREATE MonitorCreate = {}; - MonitorCreate.ObjectAttributes = &Attr; - MonitorCreate.pMonitorInfo = &MonitorInfo; - - // Create a monitor object with the specified monitor descriptor - IDARG_OUT_MONITORCREATE MonitorCreateOut; - NTSTATUS Status = IddCxMonitorCreate(m_Adapter, &MonitorCreate, &MonitorCreateOut); - if (NT_SUCCESS(Status)) - { - vddlog("d", "Monitor created successfully."); - m_Monitor = MonitorCreateOut.MonitorObject; +void IndirectDeviceContext::CreateMonitor(unsigned int index) +{ + WDF_OBJECT_ATTRIBUTES attributes; + WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&attributes, IndirectDeviceContextWrapper); + attributes.EvtCleanupCallback = [](WDFOBJECT object) { + auto* context = WdfObjectGet_IndirectDeviceContextWrapper(object); + delete context->i2c; + context->i2c = nullptr; + }; - // Associate the monitor with this device context - auto* pContext = WdfObjectGet_IndirectDeviceContextWrapper(MonitorCreateOut.MonitorObject); - pContext->pContext = this; + IDDCX_MONITOR_INFO info{}; + info.Size = sizeof(info); + info.MonitorType = DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI; + info.ConnectorIndex = index; + info.MonitorDescription.Size = sizeof(info.MonitorDescription); + CoCreateGuid(&info.MonitorContainerId); + + auto createMonitor = [&](IDDCX_MONITOR_DESCRIPTION_TYPE type, std::vector& descriptor) { + info.MonitorDescription.Type = type; + info.MonitorDescription.DataSize = static_cast(descriptor.size()); + info.MonitorDescription.pData = descriptor.data(); + IDARG_IN_MONITORCREATE arguments{}; + arguments.ObjectAttributes = &attributes; + arguments.pMonitorInfo = &info; + IDARG_OUT_MONITORCREATE created{}; + NTSTATUS status = IddCxMonitorCreate(m_Adapter, &arguments, &created); + if (!NT_SUCCESS(status)) { + return status; + } - // Tell the OS that the monitor has been plugged in - IDARG_OUT_MONITORARRIVAL ArrivalOut; - Status = IddCxMonitorArrival(m_Monitor, &ArrivalOut); - if (NT_SUCCESS(Status)) - { - vddlog("d", "Monitor arrival successfully reported."); + auto* context = WdfObjectGet_IndirectDeviceContextWrapper(created.MonitorObject); + context->pContext = this; + if (virtualI2c && IDD_IS_FIELD_AVAILABLE(IDD_CX_CLIENT_CONFIG, EvtIddCxMonitorI2CTransmitAndReceive)) { + try { + context->i2c = type == IDDCX_MONITOR_DESCRIPTION_TYPE_EDID + ? new VirtualMonitorI2c(descriptor) : new VirtualMonitorI2c(std::vector{}); + } + catch (const std::bad_alloc&) { + WdfObjectDelete(created.MonitorObject); + return static_cast(STATUS_INSUFFICIENT_RESOURCES); + } } - else - { - stringstream ss; - ss << "Failed to report monitor arrival. Status: " << Status; - vddlog("e", ss.str().c_str()); + IDARG_OUT_MONITORARRIVAL arrived{}; + status = IddCxMonitorArrival(created.MonitorObject, &arrived); + if (NT_SUCCESS(status)) { + m_Monitor = created.MonitorObject; } + else { + WdfObjectDelete(created.MonitorObject); + } + return status; + }; + + if (!m_DisplayId.empty()) { + if (NT_SUCCESS(createMonitor(IDDCX_MONITOR_DESCRIPTION_TYPE_DISPLAYID, m_DisplayId))) { + vddlog("i", "Monitor arrived with a standalone DisplayID descriptor."); + return; + } + vddlog("w", "Windows rejected the DisplayID descriptor. Retrying with EDID."); } - else - { - stringstream ss; - ss << "Failed to create monitor. Status: " << Status; - vddlog("e", ss.str().c_str()); + const auto status = createMonitor(IDDCX_MONITOR_DESCRIPTION_TYPE_EDID, s_KnownMonitorEdid); + if (!NT_SUCCESS(status)) { + vddlog("e", ("Could not report the virtual monitor to Windows. Status: " + std::to_string(status)).c_str()); } } diff --git a/Virtual Display Driver (HDR)/MttVDD/Driver.h b/Virtual Display Driver (HDR)/MttVDD/Driver.h index a23f74a..bda79c1 100644 --- a/Virtual Display Driver (HDR)/MttVDD/Driver.h +++ b/Virtual Display Driver (HDR)/MttVDD/Driver.h @@ -86,6 +86,7 @@ namespace Microsoft HANDLE m_hAvailableBufferEvent; Microsoft::WRL::Wrappers::Thread m_hThread; Microsoft::WRL::Wrappers::Event m_hTerminateEvent; + Microsoft::WRL::Wrappers::Event m_hReencodeChangeEvent; }; /// @@ -123,6 +124,7 @@ namespace Microsoft std::mutex m_DeviceCacheMutex; std::map, LuidComparator> m_DeviceCache; std::shared_ptr GetOrCreateDevice(LUID RenderAdapter); + std::vector m_DisplayId; protected: diff --git a/Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj b/Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj index cb04d18..e87ec49 100644 --- a/Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj +++ b/Virtual Display Driver (HDR)/MttVDD/MttVDD.vcxproj @@ -39,6 +39,7 @@ + @@ -116,7 +117,7 @@ 2 true 1 - 10 + 11 Spectre 25 @@ -126,7 +127,7 @@ 2 true 1 - 10 + 11 Spectre 25 25 @@ -153,7 +154,7 @@ 2 true 1 - 10 + 11 Spectre 25 @@ -163,7 +164,7 @@ 2 true 1 - 10 + 11 Spectre 25 25 @@ -245,7 +246,7 @@ trace.h Async true - /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=4 /DIDDCX_MINIMUM_VERSION_REQUIRED=4 %(AdditionalOptions) + /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=11 /DIDDCX_MINIMUM_VERSION_REQUIRED=4 %(AdditionalOptions) $(WindowsSdkDir)Include\wdf\umdf\$(UMDF_VERSION_MAJOR).$(UMDF_VERSION_MINOR);$(WindowsSdkDir)Include\$(WindowsTargetPlatformVersion)\wdf\umdf\$(UMDF_VERSION_MAJOR).$(UMDF_VERSION_MINOR);$(ProjectDir)..\..\ThirdParty\Windows-Driver-Frameworks\src\publicinc\wdf\umdf\2.15;$(ProjectDir)..\..\Common\Include;$(WindowsSdkDir)Include\$(WindowsTargetPlatformVersion)\um\iddcx\$(IDDCX_VERSION_MAJOR).$(IDDCX_VERSION_MINOR);%(AdditionalIncludeDirectories) stdcpp17 @@ -266,7 +267,7 @@ trace.h Async true - /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=10 /DIDDCX_MINIMUM_VERSION_REQUIRED=3 %(AdditionalOptions) + /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=11 /DIDDCX_MINIMUM_VERSION_REQUIRED=3 %(AdditionalOptions) $(WindowsSdkDir)Include\wdf\umdf\$(UMDF_VERSION_MAJOR).$(UMDF_VERSION_MINOR);$(WindowsSdkDir)Include\$(WindowsTargetPlatformVersion)\wdf\umdf\$(UMDF_VERSION_MAJOR).$(UMDF_VERSION_MINOR);$(ProjectDir)..\..\ThirdParty\Windows-Driver-Frameworks\src\publicinc\wdf\umdf\2.15;$(ProjectDir)..\..\Common\Include;$(WindowsSdkDir)Include\$(WindowsTargetPlatformVersion)\um\iddcx\$(IDDCX_VERSION_MAJOR).$(IDDCX_VERSION_MINOR);%(AdditionalIncludeDirectories) stdcpp17 @@ -311,7 +312,7 @@ trace.h Async true - /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=4 /DIDDCX_MINIMUM_VERSION_REQUIRED=4 %(AdditionalOptions) + /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=11 /DIDDCX_MINIMUM_VERSION_REQUIRED=4 %(AdditionalOptions) $(WindowsSdkDir)Include\wdf\umdf\$(UMDF_VERSION_MAJOR).$(UMDF_VERSION_MINOR);$(WindowsSdkDir)Include\$(WindowsTargetPlatformVersion)\wdf\umdf\$(UMDF_VERSION_MAJOR).$(UMDF_VERSION_MINOR);$(ProjectDir)..\..\ThirdParty\Windows-Driver-Frameworks\src\publicinc\wdf\umdf\2.15;$(ProjectDir)..\..\Common\Include;$(WindowsSdkDir)Include\$(WindowsTargetPlatformVersion)\um\iddcx\$(IDDCX_VERSION_MAJOR).$(IDDCX_VERSION_MINOR);%(AdditionalIncludeDirectories) stdcpp17 @@ -335,7 +336,7 @@ trace.h Async true - /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=10 /DIDDCX_MINIMUM_VERSION_REQUIRED=3 %(AdditionalOptions) + /D_ATL_NO_WIN_SUPPORT /DUMDF_DRIVER /DIDDCX_VERSION_MAJOR=1 /DIDDCX_VERSION_MINOR=11 /DIDDCX_MINIMUM_VERSION_REQUIRED=3 %(AdditionalOptions) $(WindowsSdkDir)Include\wdf\umdf\$(UMDF_VERSION_MAJOR).$(UMDF_VERSION_MINOR);$(WindowsSdkDir)Include\$(WindowsTargetPlatformVersion)\wdf\umdf\$(UMDF_VERSION_MAJOR).$(UMDF_VERSION_MINOR);$(ProjectDir)..\..\ThirdParty\Windows-Driver-Frameworks\src\publicinc\wdf\umdf\2.15;$(ProjectDir)..\..\Common\Include;$(WindowsSdkDir)Include\$(WindowsTargetPlatformVersion)\um\iddcx\$(IDDCX_VERSION_MAJOR).$(IDDCX_VERSION_MINOR);%(AdditionalIncludeDirectories) stdcpp17 diff --git a/Virtual Display Driver (HDR)/MttVDD/VirtualMonitorI2c.h b/Virtual Display Driver (HDR)/MttVDD/VirtualMonitorI2c.h new file mode 100644 index 0000000..1a8185e --- /dev/null +++ b/Virtual Display Driver (HDR)/MttVDD/VirtualMonitorI2c.h @@ -0,0 +1,131 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include + +class VirtualMonitorI2c +{ +public: + explicit VirtualMonitorI2c(const std::vector& edid) : edid_(edid) {} + + bool Transmit(unsigned int address, const void* data, std::size_t size) + { + std::lock_guard lock(mutex_); + return TransmitLocked(address, static_cast(data), size); + } + + bool Receive(unsigned int address, void* data, std::size_t size) + { + std::lock_guard lock(mutex_); + return ReceiveLocked(address, static_cast(data), size); + } + + bool TransmitAndReceive(unsigned int transmitAddress, const void* transmitData, std::size_t transmitSize, + unsigned int receiveAddress, void* receiveData, std::size_t receiveSize) + { + std::lock_guard lock(mutex_); + return TransmitLocked(transmitAddress, static_cast(transmitData), transmitSize) && + ReceiveLocked(receiveAddress, static_cast(receiveData), receiveSize); + } + +private: + static uint8_t Checksum(uint8_t seed, const uint8_t* bytes, std::size_t size) + { + for (std::size_t i = 0; i < size; ++i) { + seed ^= bytes[i]; + } + return seed; + } + + bool TransmitLocked(unsigned int address, const uint8_t* data, std::size_t size) + { + if (!data || size == 0 || size > 64) { + return false; + } + if (address == 0x30 && size == 1 && !edid_.empty()) { + segment_ = data[0]; + return true; + } + if (address == 0x50 && size == 1 && !edid_.empty()) { + offset_ = data[0]; + return true; + } + if (address != 0x37 && address != 0x6e) { + return false; + } + + replySize_ = 0; + if (size < 3 || data[0] != 0x51 || (data[1] & 0x80) == 0 || + static_cast(data[1] & 0x7f) + 3 != size || Checksum(0x6e, data, size) != 0) { + return false; + } + + if (size == 5 && data[2] == 0x01) { + const uint8_t code = data[3]; + const bool mccsVersion = code == 0xdf; + reply_ = {0x6e, 0x88, 0x02, static_cast(mccsVersion ? 0 : 1), code, + 0, 0, 0, static_cast(mccsVersion ? 2 : 0), static_cast(mccsVersion ? 2 : 0)}; + replySize_ = 10; + } + else if (size == 6 && data[2] == 0xf3) { + constexpr char capabilities[] = "(prot(monitor)type(LCD)model(VDD)cmds(01 F3)vcp(DF)mccs_ver(2.2))"; + const std::size_t position = (static_cast(data[3]) << 8) | data[4]; + const std::size_t available = position < sizeof(capabilities) ? sizeof(capabilities) - position : 0; + const std::size_t count = std::min(32, available); + reply_ = {0x6e, static_cast(0x80 | (count + 3)), 0xe3, data[3], data[4]}; + if (count) { + std::memcpy(reply_.data() + 5, capabilities + position, count); + } + replySize_ = 5 + count; + } + else { + return false; + } + reply_[replySize_] = Checksum(0x50, reply_.data(), replySize_); + ++replySize_; + return true; + } + + bool ReceiveLocked(unsigned int address, uint8_t* data, std::size_t size) + { + if (!data || size == 0 || size > 256) { + return false; + } + if (address == 0x50) { + const std::size_t position = static_cast(segment_) * 256 + offset_; + if (position > edid_.size() || size > edid_.size() - position || size > 256u - offset_) { + return false; + } + std::memcpy(data, edid_.data() + position, size); + offset_ = static_cast(offset_ + size); + return true; + } + if (address != 0x37 && address != 0x6f) { + return false; + } + if (replySize_ == 0) { + reply_ = {0x6e, 0x80, 0xbe}; + replySize_ = 3; + } + if (size < replySize_) { + return false; + } + std::memcpy(data, reply_.data(), replySize_); + std::fill(data + replySize_, data + size, uint8_t{0}); + replySize_ = 0; + return true; + } + + std::mutex mutex_; + std::vector edid_; + uint8_t segment_ = 0; + uint8_t offset_ = 0; + std::array reply_{}; + std::size_t replySize_ = 0; +}; diff --git a/Virtual Display Driver (HDR)/MttVDD/readme.md b/Virtual Display Driver (HDR)/MttVDD/readme.md index e7fd0c0..ae56ddd 100644 --- a/Virtual Display Driver (HDR)/MttVDD/readme.md +++ b/Virtual Display Driver (HDR)/MttVDD/readme.md @@ -11,4 +11,21 @@ 5. Click "Have Disk..." and click the "Browse..." button. Navigate to the extracted files and select the inf file. -6. You are done! Go to display settings to customize the resolution of the additional displays. These displays show up in Oculus and should be able to be streamed from. \ No newline at end of file +6. You are done! Go to display settings to customize the resolution of the additional displays. These displays show up in Oculus and should be able to be streamed from. + +## IddCx 1.11 options + +Build the x64 or ARM64 driver with the Windows 28000 SDK and WDK. The release build keeps the existing minimum IddCx target. The driver queries Windows for the individual 1.11 capabilities before creating an adapter. + +| Setting | Behavior | +| --- | --- | +| `D3D12SwapChain` | Automatically use D3D12 for IddCx buffers on compatible Windows runtimes and GPUs. Defaults to `true`. The driver uses D3D11 when D3D12 is unavailable or this setting is `false`. | +| `CustomDisplayId` | Read `user_displayid.bin` from the configuration folder as a standalone DisplayID descriptor. Windows must support DisplayID-only monitor descriptions. The driver falls back to EDID when the file is unavailable or Windows rejects it. | +| `VirtualI2c` | Enable the atomic I2C callback and the paired legacy callbacks on compatible runtimes. The virtual display serves its EDID and read-only DDC/CI identity queries. | +| `StaticDesktopReencodeFrameCount` | Set the adapter’s initial static desktop reencode count. The default is `0`. | + +`CustomDisplayId` and `VirtualI2c` default to `false`. Restart the driver after changing the XML or registry settings. + +Virtual Driver Control 2.0.0 can remove these XML fields when it saves. To keep the settings across Control saves, use DWORD values in `HKLM\SOFTWARE\MikeTheTech\VirtualDisplayDriver`. Set `CUSTOMDISPLAYID` or `VIRTUALI2C` to `1` to enable them. To force D3D11, set `false` in the XML and clear any enabling `D3D12SWAPCHAIN` registry value. To disable an override, remove the DWORD and leave the corresponding XML option disabled. Set `STATICDESKTOPREENCODEFRAMECOUNT` to a value from `0` to `2147483647` for the initial count. + +In the Control console, `GETIDDCXFEATURES` returns the OS feature mask. Run Control as an administrator to queue a `SETREENCODECOUNT ` override for current and subsequent swap chains until the driver restarts. Driver logs report the result of applying the override. [Microsoft’s IddCx 1.11 documentation](https://learn.microsoft.com/en-us/windows-hardware/drivers/display/iddcx1-dot-11-updates) diff --git a/Virtual Display Driver (HDR)/vdd_settings.xml b/Virtual Display Driver (HDR)/vdd_settings.xml index 4bf082c..4c070af 100644 --- a/Virtual Display Driver (HDR)/vdd_settings.xml +++ b/Virtual Display Driver (HDR)/vdd_settings.xml @@ -73,10 +73,17 @@ false + false false false + + true + false + 0 + + false @@ -163,4 +170,4 @@ Driver uses hardcoded values instead of these XML settings. === --> - \ No newline at end of file +