Skip to content
Snippets Groups Projects
Commit a1b7c084 authored by Iago Toral's avatar Iago Toral
Browse files

v3d: fix primitive queries for geometry shaders


With geometry shaders the number of emitted primitived is decided
at run time, so we cannot precompute it in the CPU and we need to
use the PRIMITIVE_COUNTS_FEEDBACK commands to have the GPU provide
the number like we do for the number of primitives written to
transform feedback. This may have a performance impact though, since
it requires a sync wait for the draw to complete, so we only do
it when geometry shaders are present.

v2: remove '> 0' comparison for ponter type (Alejandro)

Reviewed-by: default avatarAlejandro Piñeiro <apinheiro@igalia.com>
parent 6c7a2b69
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment