[dxvk] Bind buffer slice when binding buffer view

This is going to be necessary when we can bind raw buffer views as SSBOs.
This commit is contained in:
Philip Rebohle 2018-12-13 14:00:17 +01:00
parent 0bc2498570
commit fd201c4c53
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 4 additions and 1 deletions

View File

@ -163,7 +163,10 @@ namespace dxvk {
|| m_rc[slot].bufferView != bufferView) {
m_rc[slot].imageView = imageView;
m_rc[slot].bufferView = bufferView;
m_rc[slot].bufferSlice = bufferView != nullptr
? bufferView->slice()
: DxvkBufferSlice();
m_flags.set(
DxvkContextFlag::CpDirtyResources,
DxvkContextFlag::GpDirtyResources);