mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 18:28:12 +02:00
radv/bvh: Fix flush in bit_writer_skip_to
If temp is not cleared, the next flushed dword will contain data from
the previous one.
Fixes: 97f6287 ("radv: Use the BVH8 format on GFX12")
Reviewed-by: Natalie Vock <natalie.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35445>
This commit is contained in:
parent
6201e24307
commit
7ad02416f6
1 changed files with 1 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ bit_writer_skip_to(inout bit_writer writer, uint32_t target)
|
|||
if (writer.count > 0) {
|
||||
REF(uint32_t) dst = REF(uint32_t)(writer.addr + writer.offset);
|
||||
DEREF(dst) = writer.temp;
|
||||
writer.temp = 0;
|
||||
}
|
||||
|
||||
writer.count = target % 32;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue