Mesa (staging/19.2): etnaviv: fix vertex buffer state emission for single stream GPUs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 15 17:07:12 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: c1ca1602ddf908db9715db4e5c439b25ad08078d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c1ca1602ddf908db9715db4e5c439b25ad08078d

Author: Lucas Stach <l.stach at pengutronix.de>
Date:   Mon Sep 16 14:37:01 2019 +0200

etnaviv: fix vertex buffer state emission for single stream GPUs

GPUs with a single supported vertex stream must use the single state
address to program the stream.

Fixes: 3d09bb390a39 (etnaviv: GC7000: State changes for HALTI3..5)
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
Reviewed-by: Jonathan Marek <jonathan at marek.ca>
(cherry picked from commit ce23bc9283cbe1809966530a75e86cc334ef385d)

---

 src/gallium/drivers/etnaviv/etnaviv_emit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/etnaviv/etnaviv_emit.c b/src/gallium/drivers/etnaviv/etnaviv_emit.c
index 74bc372901e..2e373ecc232 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_emit.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_emit.c
@@ -330,7 +330,7 @@ etna_emit_state(struct etna_context *ctx)
                /*14680*/ EMIT_STATE(NFE_VERTEX_STREAMS_VERTEX_DIVISOR(x), ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_UNK14680);
             }
          }
-      } else if(ctx->specs.stream_count >= 1) { /* hw w/ multiple vertex streams */
+      } else if(ctx->specs.stream_count > 1) { /* hw w/ multiple vertex streams */
          for (int x = 0; x < ctx->vertex_buffer.count; ++x) {
             /*00680*/ EMIT_STATE_RELOC(FE_VERTEX_STREAMS_BASE_ADDR(x), &ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_BASE_ADDR);
          }




More information about the mesa-commit mailing list