1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[dxvk] Update buffer view in clearBufferView

Otherwise we might accidentally clear the wrong buffer region.
This commit is contained in:
Philip Rebohle 2019-01-18 21:29:05 +01:00
parent 9dbe352c51
commit 4dac8e7233
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -292,6 +292,10 @@ namespace dxvk {
this->spillRenderPass(); this->spillRenderPass();
this->unbindComputePipeline(); this->unbindComputePipeline();
// The view range might have been invalidated, so
// we need to make sure the handle is up to date
bufferView->updateView();
auto bufferSlice = bufferView->getSliceHandle(); auto bufferSlice = bufferView->getSliceHandle();
if (m_barriers.isBufferDirty(bufferSlice, DxvkAccess::Write)) if (m_barriers.isBufferDirty(bufferSlice, DxvkAccess::Write))