mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-18 18:40:02 +00:00
D3D12: revert heap size back to 896M (#1960)
* D3D12: revert heap size back to 896M * Update D3D12GSRender.h
This commit is contained in:
parent
f36f478281
commit
0ae8cc4467
@ -167,7 +167,6 @@ D3D12GSRender::D3D12GSRender()
|
|||||||
// Adapter with specified name
|
// Adapter with specified name
|
||||||
if (adapter_name == desc.Description)
|
if (adapter_name == desc.Description)
|
||||||
{
|
{
|
||||||
vram_size = desc.DedicatedVideoMemory != 0 ? desc.DedicatedVideoMemory : desc.DedicatedSystemMemory;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +244,7 @@ D3D12GSRender::D3D12GSRender()
|
|||||||
|
|
||||||
m_rtts.init(m_device.Get());
|
m_rtts.init(m_device.Get());
|
||||||
m_readback_resources.init(m_device.Get(), 1024 * 1024 * 128, D3D12_HEAP_TYPE_READBACK, D3D12_RESOURCE_STATE_COPY_DEST);
|
m_readback_resources.init(m_device.Get(), 1024 * 1024 * 128, D3D12_HEAP_TYPE_READBACK, D3D12_RESOURCE_STATE_COPY_DEST);
|
||||||
m_buffer_data.init(m_device.Get(), std::min((size_t)(1024 * 1024 * 896), (size_t)(vram_size - (1024 * 1024 * 128))), D3D12_HEAP_TYPE_UPLOAD, D3D12_RESOURCE_STATE_GENERIC_READ);
|
m_buffer_data.init(m_device.Get(), 1024 * 1024 * 896, D3D12_HEAP_TYPE_UPLOAD, D3D12_RESOURCE_STATE_GENERIC_READ);
|
||||||
|
|
||||||
CHECK_HRESULT(
|
CHECK_HRESULT(
|
||||||
m_device->CreateCommittedResource(
|
m_device->CreateCommittedResource(
|
||||||
|
@ -121,7 +121,6 @@ private:
|
|||||||
u32 m_current_transform_constants_buffer_descriptor_id;
|
u32 m_current_transform_constants_buffer_descriptor_id;
|
||||||
ComPtr<ID3D12DescriptorHeap> m_current_texture_descriptors;
|
ComPtr<ID3D12DescriptorHeap> m_current_texture_descriptors;
|
||||||
ComPtr<ID3D12DescriptorHeap> m_current_sampler_descriptors;
|
ComPtr<ID3D12DescriptorHeap> m_current_sampler_descriptors;
|
||||||
size_t vram_size;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
D3D12GSRender();
|
D3D12GSRender();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user