Commit c11a2bc2 authored by Hyunjun Ko's avatar Hyunjun Ko Committed by Marge Bot

turnip: Fix wrong assignment of xfb output's offset.

Should be divided by 4 so we could calculate the offset correctly in
tu6_setup_streamout.

Fixes: 2a1d6b81
Related: 374406a7Signed-off-by: Hyunjun Ko's avatarHyunjun Ko <zzoon@igalia.com>
Reviewed-by: Jonathan Marek's avatarJonathan Marek <jonathan@marek.ca>
Part-of: <!4207>
parent 25a54554
......@@ -422,7 +422,7 @@ tu_gather_xfb_info(nir_shader *nir, struct tu_shader *shader)
info->output[i].num_components =
util_bitcount(xfb->outputs[i].component_mask);
info->output[i].output_buffer = xfb->outputs[i].buffer;
info->output[i].dst_offset = xfb->outputs[i].offset;
info->output[i].dst_offset = xfb->outputs[i].offset / 4;
info->output[i].stream = xfb->buffer_to_stream[xfb->outputs[i].buffer];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment