diff options
author | Paul Berry <[email protected]> | 2011-12-15 14:57:57 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-12-20 15:22:28 -0800 |
commit | c59393b7069f59ca2a13bfb6500f2a5360c38031 (patch) | |
tree | bf8d2c511d3ad886ef2eaf7719aa050c72017d41 /scons | |
parent | c5e17a84983d7799fd842a62daaece3d97a670be (diff) |
i965 gen6: Implement transform feedback queries.
This patch adds software-based PRIMITIVES_GENERATED and
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN queries that work by keeping
track of the number of primitives that are sent down the pipeline, and
adjusting as necessary to account for the way each primitive type is
tessellated.
In the long run we'll want to replace this with a hardware-based
implementation, because the software approach won't work with geometry
shaders or primitive restart. However, at the moment, we don't have
the necessary kernel support to implement a hardware-based query (we
would need the kernel to save GPU registers when context switching, so
that drawing performed by another process doesn't get counted).
Fixes Piglit tests EXT_transform_feedback/query-primitives_generated-*
and EXT_transform_feedback/query-primitives-written-*.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'scons')
0 files changed, 0 insertions, 0 deletions