diff options
author | Eric Anholt <[email protected]> | 2018-06-15 17:08:29 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-06-18 14:54:16 -0700 |
commit | e636199c1c7dc9bc0525f5ae2a4eef05a8092180 (patch) | |
tree | 485997a7ae5431ecca305a2a1df9b68dcf759a33 /src/gallium/drivers/v3d/v3d_context.h | |
parent | 94178044d5d34e5bf65601d0b5da70d91284ec56 (diff) |
v3d: Set the SO offsets correctly if we have to re-emit.
This should fix TF across a glFlush() or TF pause/restart. Fixes
dEQP-GLES3.functional.transform_feedback.array.interleaved.lines.highp_float
and many, many others.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_context.h')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h index c0de05d3630..7c920dbc3db 100644 --- a/src/gallium/drivers/v3d/v3d_context.h +++ b/src/gallium/drivers/v3d/v3d_context.h @@ -189,6 +189,8 @@ struct v3d_vertex_stateobj { struct v3d_streamout_stateobj { struct pipe_stream_output_target *targets[PIPE_MAX_SO_BUFFERS]; + /* Number of vertices we've written into the buffer so far. */ + uint32_t offsets[PIPE_MAX_SO_BUFFERS]; unsigned num_targets; }; |