[dxgi] Report Adapter LUID if available

This commit is contained in:
Philip Rebohle 2018-12-03 21:31:44 +01:00
parent 033ea0c31b
commit df667b7b0e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 5 additions and 1 deletions

View File

@ -149,6 +149,7 @@ namespace dxvk {
auto deviceProp = m_adapter->deviceProperties();
auto memoryProp = m_adapter->memoryProperties();
auto deviceId = m_adapter->devicePropertiesExt().coreDeviceId;
// Custom Vendor / Device ID
if (options->customVendorId >= 0)
@ -208,10 +209,13 @@ namespace dxvk {
pDesc->DedicatedVideoMemory = deviceMemory;
pDesc->DedicatedSystemMemory = 0;
pDesc->SharedSystemMemory = sharedMemory;
pDesc->AdapterLuid = LUID { 0, 0 }; // TODO implement
pDesc->AdapterLuid = LUID { 0, 0 };
pDesc->Flags = 0;
pDesc->GraphicsPreemptionGranularity = DXGI_GRAPHICS_PREEMPTION_DMA_BUFFER_BOUNDARY;
pDesc->ComputePreemptionGranularity = DXGI_COMPUTE_PREEMPTION_DMA_BUFFER_BOUNDARY;
if (deviceId.deviceLUIDValid)
std::memcpy(&pDesc->AdapterLuid, deviceId.deviceLUID, VK_LUID_SIZE);
return S_OK;
}