doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.4k stars 866 forks source link

[d3d9] Do not assume 16-byte alignment in replaceNaN #4448

Open doitsujin opened 1 week ago

doitsujin commented 1 week ago

Stack alignment is 4 bytes on 32-bit, and we cannot align variables on the stack, so this is technically broken. Use unaligned stores instead even if those are a bit slower.