Mesa (master): zink: don't pass so_info to ntv at all unless it's necessary

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 9 03:01:22 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Feb 24 18:27:31 2021 -0500

zink: don't pass so_info to ntv at all unless it's necessary

this is only needed for explicit xfb outputs

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9271>

---

 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 1f56708cad9..6d3688b0163 100644
--- a/src/gallium/drivers/zink/zink_compiler.c
+++ b/src/gallium/drivers/zink/zink_compiler.c
@@ -450,7 +450,7 @@ update_so_info(struct zink_shader *zs, const struct pipe_stream_output_info *so_
       /* Map Gallium's condensed "slots" back to real VARYING_SLOT_* enums */
       zs->streamout.so_info_slots[zs->streamout.so_info.num_outputs++] = reverse_map[output->register_index];
    }
-   zs->streamout.have_xfb = true;
+   zs->streamout.have_xfb = !!zs->streamout.so_info.num_outputs;
 }
 
 VkShaderModule



More information about the mesa-commit mailing list