From 4ed7329236a576b6b6f615787bb722b960f32c6b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 16 Feb 2022 15:15:55 -0500 Subject: [PATCH] zink: correctly set xfb packed output offsets cc: mesa-stable Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index 0dc3e12..aa7a9ab 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -566,7 +566,7 @@ update_so_info(struct zink_shader *zs, const struct pipe_stream_output_info *so_ packed_streams[slot] |= BITFIELD_BIT(output->stream); packed_buffers[slot] |= BITFIELD_BIT(output->output_buffer); for (unsigned j = 0; j < output->num_components; j++) - packed_offsets[output->register_index][j + output->start_component] = output->dst_offset; + packed_offsets[output->register_index][j + output->start_component] = output->dst_offset + j; } } } -- 2.7.4