Module: Mesa
Branch: master
Commit: c11a2bc202f3fed542631024c618e7df528d9e02
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c11a2bc202f3fed542631024c618e7df528d9e02

Author: Hyunjun Ko <[email protected]>
Date:   Tue Mar 17 03:50:59 2020 +0000

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: 2a1d6b81ed54971d33e83b7f5545da096b13b043
Related: 374406a7c420d266f920461f904864a94dc1b8c8

Signed-off-by: Hyunjun Ko <[email protected]>
Reviewed-by: Jonathan Marek <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4207>

---

 src/freedreno/vulkan/tu_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c
index 53436b50566..1fcdccd8a90 100644
--- a/src/freedreno/vulkan/tu_shader.c
+++ b/src/freedreno/vulkan/tu_shader.c
@@ -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];
    }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to