mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-09 00:01:07 +00:00
Only initialise AMD extensions when replaying on AMD
* The driver module may be loaded but that doesn't mean we should try to initialise the extensions.
This commit is contained in:
@@ -3542,7 +3542,7 @@ void QueueReadbackData::Resize(uint64_t size)
|
||||
|
||||
void WrappedID3D12Device::CreateInternalResources()
|
||||
{
|
||||
if(IsReplayMode(m_State))
|
||||
if(IsReplayMode(m_State) && m_DriverInfo.vendor == GPUVendor::AMD)
|
||||
{
|
||||
// Initialise AMD extension, if possible
|
||||
HMODULE mod = GetModuleHandleA("amdxc64.dll");
|
||||
|
||||
@@ -712,6 +712,8 @@ private:
|
||||
|
||||
bool m_UsedDXIL = false;
|
||||
|
||||
DriverInformation m_DriverInfo = {};
|
||||
|
||||
D3D12InitParams m_InitParams;
|
||||
uint64_t m_SectionVersion;
|
||||
ReplayOptions m_ReplayOptions;
|
||||
@@ -857,6 +859,7 @@ public:
|
||||
}
|
||||
const std::map<ResourceId, DXGI_FORMAT> &GetBackbufferFormats() { return m_BackbufferFormat; }
|
||||
void SetLogFile(const char *logfile);
|
||||
void SetDriverInfo(const DriverInformation &info) { m_DriverInfo = info; }
|
||||
void SetInitParams(const D3D12InitParams ¶ms, uint64_t sectionVersion,
|
||||
const ReplayOptions &opts, INVAPID3DDevice *nvapi, IAGSD3DDevice *ags)
|
||||
{
|
||||
|
||||
@@ -114,6 +114,8 @@ void D3D12Replay::Initialise(IDXGIFactory1 *factory)
|
||||
SAFE_RELEASE(pDXGIAdapter);
|
||||
}
|
||||
}
|
||||
|
||||
m_pDevice->SetDriverInfo(m_DriverInfo);
|
||||
}
|
||||
|
||||
RDResult D3D12Replay::FatalErrorCheck()
|
||||
|
||||
Reference in New Issue
Block a user