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:
Konstantin Seurer 2025-06-05 08:30:36 +02:00 committed by Marge Bot
parent 6201e24307
commit 7ad02416f6

View file

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