mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[idd] capture: preserve software copy row pitch
Use an explicit placed buffer for software frame copies so the D3D copy uses the same row pitch published through KVMFR. GetCopyableFootprints describes buffer copies and cannot be used to infer the physical layout of a placed row-major texture. This caused padded resolutions to use the wrong row starts in every consumer. Keep the copy direct to IVSHMEM without a staging or CPU copy.
This commit is contained in:
@@ -52,9 +52,8 @@ struct CD3D12Device
|
||||
|
||||
CD3D12CommandQueue m_copyQueue;
|
||||
CD3D12CommandQueue m_computeQueue;
|
||||
bool m_computeEnabled = false;
|
||||
bool m_indirectCopy = true;
|
||||
bool m_directTextureSupported = false;
|
||||
bool m_computeEnabled = false;
|
||||
bool m_indirectCopy = true;
|
||||
|
||||
bool HeapTest();
|
||||
|
||||
@@ -81,7 +80,6 @@ struct CD3D12Device
|
||||
ComPtr<ID3D12Device3> GetDevice() { return m_device; }
|
||||
ComPtr<ID3D12Heap > GetTransportHeap() { return m_transportHeap; }
|
||||
bool IsIndirectCopy() const { return m_indirectCopy; }
|
||||
bool CanUseDirectTexture() const { return m_directTextureSupported; }
|
||||
|
||||
CD3D12CommandSlot * GetCopySlot ();
|
||||
CD3D12CommandSlot * GetCopySlot (unsigned frameIndex);
|
||||
|
||||
Reference in New Issue
Block a user