Mesa (master): freedreno/a5xx: Drop redundant stream output linking check.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 5 18:42:51 UTC 2021


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jan  4 15:25:17 2021 -0800

freedreno/a5xx: Drop redundant stream output linking check.

The link function just loops over the num_outputs.  Brings us closer to
a6xx.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8336>

---

 src/gallium/drivers/freedreno/a5xx/fd5_program.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_program.c b/src/gallium/drivers/freedreno/a5xx/fd5_program.c
index 7c29bcf6453..50641b90f4f 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_program.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_program.c
@@ -367,8 +367,7 @@ fd5_program_emit(struct fd_context *ctx, struct fd_ringbuffer *ring,
 	struct ir3_shader_linkage l = {0};
 	ir3_link_shaders(&l, s[VS].v, s[FS].v, true);
 
-	if ((s[VS].v->shader->stream_output.num_outputs > 0) &&
-			!emit->binning_pass)
+	if (!emit->binning_pass)
 		ir3_link_stream_out(&l, s[VS].v);
 
 	OUT_PKT4(ring, REG_A5XX_VPC_VAR_DISABLE(0), 4);



More information about the mesa-commit mailing list