summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3dx_emit.c
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-06-20 13:38:56 +0200
committerIago Toral Quiroga <[email protected]>2019-07-02 08:57:20 +0200
commitc7dff0e614c93c1c890851456477723d5fb22495 (patch)
treec8b629a7d6267e6a678c5032277012d9397ca87e /src/gallium/drivers/v3d/v3dx_emit.c
parentc8dcc308ccfdd24a3c997d40a4852169ce7b58fb (diff)
v3d: keep track of resources written by transform feedback
The hardware provides a feature to sync reads from previous transform feedback writes in the same job so if we use this mechanism we no longer have to flush the job. In order to identify this scenario we need a mechanism to identify resources that are written by transform feedback. v2: use _mesa_pointer_set_create (Eric) Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/v3d/v3dx_emit.c')
-rw-r--r--src/gallium/drivers/v3d/v3dx_emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/v3d/v3dx_emit.c b/src/gallium/drivers/v3d/v3dx_emit.c
index c54e63f7efe..a3d32f4b7d7 100644
--- a/src/gallium/drivers/v3d/v3dx_emit.c
+++ b/src/gallium/drivers/v3d/v3dx_emit.c
@@ -766,8 +766,8 @@ v3dX(emit_state)(struct pipe_context *pctx)
};
#endif /* V3D_VERSION < 40 */
if (target) {
- v3d_job_add_write_resource(v3d->job,
- target->buffer);
+ v3d_job_add_tf_write_resource(v3d->job,
+ target->buffer);
}
/* XXX: buffer_size? */
}