1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

Revert "[d3d9] Only use DEVICE_LOCAL memory for small dynamic buffers"

This reverts commit f3a82a0bcc427394ab86b6a646c9a5487afcbcfc.

Apparently this makes other games slower. We need a different solution for TR: Legend.
This commit is contained in:
Robin Kertels 2020-12-14 17:30:40 +01:00 committed by Joshie
parent 65635b23c1
commit 4b6632764f
2 changed files with 2 additions and 5 deletions

View File

@ -94,10 +94,8 @@ namespace dxvk {
info.access |= VK_ACCESS_HOST_READ_BIT; info.access |= VK_ACCESS_HOST_READ_BIT;
memoryFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT memoryFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
| VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
| VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
if (m_desc.Size <= DeviceLocalThreshold)
memoryFlags |= VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
} }
else { else {
info.stages |= VK_PIPELINE_STAGE_TRANSFER_BIT; info.stages |= VK_PIPELINE_STAGE_TRANSFER_BIT;

View File

@ -68,7 +68,6 @@ namespace dxvk {
class D3D9CommonBuffer { class D3D9CommonBuffer {
static constexpr VkDeviceSize BufferSliceAlignment = 64; static constexpr VkDeviceSize BufferSliceAlignment = 64;
static constexpr VkDeviceSize DeviceLocalThreshold = 4096;
public: public:
D3D9CommonBuffer( D3D9CommonBuffer(