diff options
author | Rob Clark <[email protected]> | 2016-04-12 12:11:07 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-04-13 14:16:02 -0400 |
commit | 7e93b26b5d9f926346fb3651c0094fc1caade4d8 (patch) | |
tree | 257ea17617915df573a2361cb72bba7c39cd05b2 /src/gallium/drivers/freedreno/freedreno_draw.c | |
parent | 6ca6e80f61d4fc2e88f1abc2416b1965ecf1d114 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_draw.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c index 11d9f64958b..66bb1163df2 100644 --- a/src/gallium/drivers/freedreno/freedreno_draw.c +++ b/src/gallium/drivers/freedreno/freedreno_draw.c @@ -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; |