mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 16:24:29 +01:00
[dxvk] Update buffer view in clearBufferView
Otherwise we might accidentally clear the wrong buffer region.
This commit is contained in:
parent
9dbe352c51
commit
4dac8e7233
@ -292,8 +292,12 @@ namespace dxvk {
|
||||
this->spillRenderPass();
|
||||
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();
|
||||
|
||||
|
||||
if (m_barriers.isBufferDirty(bufferSlice, DxvkAccess::Write))
|
||||
m_barriers.recordCommands(m_cmd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user