d3d12: Remove m_textureData heap since it wasn't used

Free 512 mb
This commit is contained in:
vlj 2015-06-25 18:29:08 +02:00 committed by Vincent Lejeune
parent 8f31211557
commit 865445e29b
2 changed files with 0 additions and 4 deletions

View File

@ -585,7 +585,6 @@ D3D12GSRender::D3D12GSRender()
m_constantsData.Init(m_device, 1024 * 1024 * 64, D3D12_HEAP_TYPE_UPLOAD, D3D12_HEAP_FLAG_NONE); m_constantsData.Init(m_device, 1024 * 1024 * 64, D3D12_HEAP_TYPE_UPLOAD, D3D12_HEAP_FLAG_NONE);
m_vertexIndexData.Init(m_device, 1024 * 1024 * 384, D3D12_HEAP_TYPE_UPLOAD, D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS); m_vertexIndexData.Init(m_device, 1024 * 1024 * 384, D3D12_HEAP_TYPE_UPLOAD, D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS);
m_textureUploadData.Init(m_device, 1024 * 1024 * 256, D3D12_HEAP_TYPE_UPLOAD, D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS); m_textureUploadData.Init(m_device, 1024 * 1024 * 256, D3D12_HEAP_TYPE_UPLOAD, D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS);
m_textureData.Init(m_device, 1024 * 1024 * 512, D3D12_HEAP_TYPE_DEFAULT, D3D12_HEAP_FLAG_ALLOW_ONLY_NON_RT_DS_TEXTURES);
} }
D3D12GSRender::~D3D12GSRender() D3D12GSRender::~D3D12GSRender()
@ -593,7 +592,6 @@ D3D12GSRender::~D3D12GSRender()
m_constantsData.Release(); m_constantsData.Release();
m_vertexIndexData.Release(); m_vertexIndexData.Release();
m_textureUploadData.Release(); m_textureUploadData.Release();
m_textureData.Release();
m_UAVHeap.m_heap->Release(); m_UAVHeap.m_heap->Release();
m_readbackResources.m_heap->Release(); m_readbackResources.m_heap->Release();
m_texturesRTTs.clear(); m_texturesRTTs.clear();
@ -1062,7 +1060,6 @@ void D3D12GSRender::Flip()
m_constantsData.getCleaningFunction(), m_constantsData.getCleaningFunction(),
m_vertexIndexData.getCleaningFunction(), m_vertexIndexData.getCleaningFunction(),
m_textureUploadData.getCleaningFunction(), m_textureUploadData.getCleaningFunction(),
m_textureData.getCleaningFunction()
}; };
std::lock_guard<std::mutex> lock(mut); std::lock_guard<std::mutex> lock(mut);

View File

@ -306,7 +306,6 @@ private:
DataHeap<ID3D12Heap, 65536> m_vertexIndexData; DataHeap<ID3D12Heap, 65536> m_vertexIndexData;
// Texture storage // Texture storage
DataHeap<ID3D12Heap, 65536> m_textureUploadData; DataHeap<ID3D12Heap, 65536> m_textureUploadData;
DataHeap<ID3D12Heap, 65536> m_textureData;
DataHeap<ID3D12Heap, 65536> m_UAVHeap; DataHeap<ID3D12Heap, 65536> m_UAVHeap;
DataHeap<ID3D12Heap, 65536> m_readbackResources; DataHeap<ID3D12Heap, 65536> m_readbackResources;