1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[spirv] Fix initial allocation size for compressed buffer

The old initial size was still for uint8.
This commit is contained in:
Philip Rebohle 2019-04-04 13:15:59 +02:00
parent ac3cd0b688
commit da4baefdf0
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -20,7 +20,7 @@ namespace dxvk {
// the number of bytes it takes in the compressed buffer.
// This way, it can achieve a compression ratio of ~50%.
m_mask.reserve((m_size + NumMaskWords - 1) / NumMaskWords);
m_code.reserve(m_size * 4);
m_code.reserve((m_size + 1) / 2);
uint64_t dstWord = 0;
uint32_t dstShift = 0;