mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
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:3d09bb390a(etnaviv: GC7000: State changes for HALTI3..5) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Jonathan Marek <jonathan@marek.ca> (cherry picked from commitce23bc9283)
This commit is contained in:
parent
91960ae890
commit
c1ca1602dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue