From f26fa17bc1530f3959a01c921de8eaed8c38aeb0 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 28 Mar 2025 23:50:54 +0000 Subject: [PATCH] [idd] driver: make m_indirectCopy static so it persists on retry --- idd/LGIdd/CD3D12Device.cpp | 5 +++-- idd/LGIdd/CD3D12Device.h | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/idd/LGIdd/CD3D12Device.cpp b/idd/LGIdd/CD3D12Device.cpp index 3d56d779..57280b9e 100644 --- a/idd/LGIdd/CD3D12Device.cpp +++ b/idd/LGIdd/CD3D12Device.cpp @@ -1,10 +1,11 @@ #include "CD3D12Device.h" #include "CDebug.h" +bool CD3D12Device::m_indirectCopy = false; + CD3D12Device::CD3D12Device(LUID adapterLuid) : m_adapterLuid(adapterLuid), - m_debug(false), - m_indirectCopy(false) + m_debug(false) { if (m_debug) { diff --git a/idd/LGIdd/CD3D12Device.h b/idd/LGIdd/CD3D12Device.h index fe77a6d4..8cfaa5e3 100644 --- a/idd/LGIdd/CD3D12Device.h +++ b/idd/LGIdd/CD3D12Device.h @@ -16,7 +16,9 @@ struct CD3D12Device private: LUID m_adapterLuid; bool m_debug; - bool m_indirectCopy; + + // static as this needs to persist if set + static bool m_indirectCopy; ComPtr m_dxDebug; ComPtr m_infoQueue;