Ensure d3d12 capabilities are filled when amdxc64 hooked get called

Fixes FSR 4 not being selectable with VK w/dx12
This commit is contained in:
FakeMichau
2026-06-28 03:14:35 +02:00
parent ed72e37d9f
commit e16a36e5d2
+3
View File
@@ -136,6 +136,9 @@ void Amdxc64Hooks::Init()
HRESULT STDMETHODCALLTYPE Amdxc64Hooks::hkAmdExtD3DCreateInterface(IUnknown* pOuter, REFIID riid, void** ppvObject)
{
// We need to know D3D12 capabilities by now, one of them being FSR 4
IdentifyGpu::updateD3d12Capabilities();
const auto primaryGpu = IdentifyGpu::getPrimaryGpu();
const bool runFsr4Upgrade = primaryGpu.fsr4Support != FSR4Support::None;