freedreno: fix stream-out offset handling for lines/tris
We need to increment offset by # of vertices, not by # of prims. Fixes a bunch of dEQP fails involving prims other than points. For example, dEQP-GLES3.functional.transform_feedback.position.lines_separate Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
6ca6e80f61
commit
7e93b26b5d
|
@ -198,7 +198,7 @@ fd_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
|
|||
ctx->draw_vbo(ctx, info);
|
||||
|
||||
for (i = 0; i < ctx->streamout.num_targets; i++)
|
||||
ctx->streamout.offsets[i] += prims;
|
||||
ctx->streamout.offsets[i] += info->count;
|
||||
|
||||
if (fd_mesa_debug & FD_DBG_DDRAW)
|
||||
ctx->dirty = 0xffffffff;
|
||||
|
|
Loading…
Reference in New Issue