mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[dxvk] Align length when clearing entire buffer
Buffer slices in DXVK are always aligned to at least 256 bytes, so this is safe. Fixes a regression leading to GPU hangs on RADV.
This commit is contained in:
parent
b30e53fa0d
commit
a0e0ba1cc8
@ -230,6 +230,9 @@ namespace dxvk {
|
||||
uint32_t value) {
|
||||
this->spillRenderPass();
|
||||
|
||||
if (length == buffer->info().size)
|
||||
length = align(length, 4);
|
||||
|
||||
auto slice = buffer->subSlice(offset, length);
|
||||
|
||||
m_cmd->cmdFillBuffer(
|
||||
|
Loading…
Reference in New Issue
Block a user