diff options
author | Hyunjun Ko <[email protected]> | 2020-03-17 03:50:59 +0000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-18 09:47:04 +0000 |
commit | c11a2bc202f3fed542631024c618e7df528d9e02 (patch) | |
tree | ad8017ee958067b4be6890c475bfaebf7d8a722d /src/freedreno/vulkan/tu_shader.c | |
parent | 25a54554b319ce38dbe11f92cb2447bfb6b5b78f (diff) |
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>
Diffstat (limited to 'src/freedreno/vulkan/tu_shader.c')
-rw-r--r-- | src/freedreno/vulkan/tu_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } |