diff options
author | Eric Anholt <[email protected]> | 2017-09-30 16:48:44 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-10 11:42:05 -0700 |
commit | ec5af12b5d54f65ab119ce6f4eecd3a9fee5407d (patch) | |
tree | eb04df11332bef68dac3f3abdb33088c21a4533b /src/gallium/drivers/vc5/vc5_emit.c | |
parent | 361c5f28bdc6858618e9de85a340adce1b217e2c (diff) |
broadcom/vc5: Flush the job when mapping a transform feedback buffer.
We will want something fancier for reusing a TF output within the same
frame, but we at least need this in order for piglit tests to work.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_emit.c')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_emit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_emit.c b/src/gallium/drivers/vc5/vc5_emit.c index 60883d96d4b..7f78817bf91 100644 --- a/src/gallium/drivers/vc5/vc5_emit.c +++ b/src/gallium/drivers/vc5/vc5_emit.c @@ -440,6 +440,9 @@ vc5_emit_state(struct pipe_context *pctx) cl_address(rsc->bo, target->buffer_offset); }; + + vc5_job_add_write_resource(vc5->job, + target->buffer); /* XXX: buffer_size? */ } } else { |