v3d: keep track of resources written by transform feedback
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 20 Jun 2019 11:38:56 +0000 (13:38 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 2 Jul 2019 06:57:20 +0000 (08:57 +0200)
commitc7dff0e614c93c1c890851456477723d5fb22495
treec8b629a7d6267e6a678c5032277012d9397ca87e
parentc8dcc308ccfdd24a3c997d40a4852169ce7b58fb
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 <eric@anholt.net>
src/gallium/drivers/v3d/v3d_context.h
src/gallium/drivers/v3d/v3d_job.c
src/gallium/drivers/v3d/v3dx_emit.c