1
0
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:
Philip Rebohle 2018-05-25 21:02:15 +02:00
parent b30e53fa0d
commit a0e0ba1cc8
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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(