diff options
author | Lucas Stach <[email protected]> | 2019-09-16 14:37:01 +0200 |
---|---|---|
committer | Lucas Stach <[email protected]> | 2019-10-14 19:18:37 +0000 |
commit | ce23bc9283cbe1809966530a75e86cc334ef385d (patch) | |
tree | b97fedfdecbafc8d3c6dc4425ace78089cd84b2e /src/gallium | |
parent | c2efc7c6378ea5cc49c801153129c0f0cc2f3b23 (diff) |
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 <[email protected]>
Reviewed-by: Jonathan Marek <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_emit.c b/src/gallium/drivers/etnaviv/etnaviv_emit.c index 338ea9ebca0..6d8dd349f84 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_emit.c +++ b/src/gallium/drivers/etnaviv/etnaviv_emit.c @@ -332,7 +332,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); } |