mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
GS/DX12: Log if device is UMA
This commit is contained in:
committed by
lightningterror
parent
faf6c04dee
commit
12940f2e1b
@@ -1416,6 +1416,11 @@ bool GSDevice12::CheckFeatures(const u32& vendor_id)
|
||||
DXGI_FEATURE_PRESENT_ALLOW_TEARING, &allow_tearing_supported, sizeof(allow_tearing_supported));
|
||||
m_allow_tearing_supported = (SUCCEEDED(hr) && allow_tearing_supported == TRUE);
|
||||
|
||||
D3D12_FEATURE_DATA_ARCHITECTURE1 device_architecture1 = {};
|
||||
hr = m_device->CheckFeatureSupport(D3D12_FEATURE_ARCHITECTURE1, &device_architecture1, sizeof(device_architecture1));
|
||||
m_uma = SUCCEEDED(hr) && device_architecture1.UMA;
|
||||
Console.WriteLnFmt("D3D12: {}", m_uma ? (device_architecture1.CacheCoherentUMA ? "Cache Coherent Unified Memory Architecture" : "Unified Memory Architecture") : "Non-Unified Memory Architecture");
|
||||
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS3 device_options3 = {};
|
||||
hr = m_device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS3, &device_options3, sizeof(device_options3));
|
||||
m_typed_casting_supported = SUCCEEDED(hr) && device_options3.CastingFullyTypedFormatSupported;
|
||||
|
||||
@@ -321,8 +321,9 @@ private:
|
||||
bool m_allow_tearing_supported = false;
|
||||
bool m_using_allow_tearing = false;
|
||||
bool m_is_exclusive_fullscreen = false;
|
||||
bool m_enhanced_barriers = false;
|
||||
bool m_uma = false;
|
||||
bool m_typed_casting_supported = false;
|
||||
bool m_enhanced_barriers = false;
|
||||
bool m_device_lost = false;
|
||||
|
||||
ComPtr<ID3D12RootSignature> m_tfx_root_signature;
|
||||
|
||||
Reference in New Issue
Block a user