Mesa (master): freedreno: fix stream-out offset handling for lines/tris
Rob Clark
robclark at kemper.freedesktop.org
Wed Apr 13 18:38:23 UTC 2016
Module: Mesa
Branch: master
Commit: 7e93b26b5d9f926346fb3651c0094fc1caade4d8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e93b26b5d9f926346fb3651c0094fc1caade4d8
Author: Rob Clark <robclark at freedesktop.org>
Date: Tue Apr 12 12:11:07 2016 -0400
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 at freedesktop.org>
---
src/gallium/drivers/freedreno/freedreno_draw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c
index 11d9f64..66bb116 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;
More information about the mesa-commit
mailing list