mesa/src/gallium/drivers
Christian Gmeiner 0c6c1fa484 etnaviv: Implement hardware based streamout support
Add support for hardware-accelerated transform feedback using the TFB
command register to control capture state.

Maintains the hardware state through an enum distinguishing between
idle (no hardware state established), active (hardware currently
capturing), and paused (hardware stopped).

Hardware commands are emitted based on state transitions:
 - ENABLE when moving from idle to active
 - RESUME when transitioning from paused to active
 - DISABLE when stopping capture

Transform feedback buffer setup is using the existing dirty state
mechanism through ETNA_DIRTY_STREAMOUT_BUFS, while command emission uses
the new ETNA_DIRTY_STREAMOUT_CMD flag. Buffer descriptors are computed by
mapping vertex shader transform feedback outputs to fragment shader input
registers, as required by the hardware.

A 64-byte context buffer is allocated per context to maintain hardware
state isolation between applications using transform feedback
simultaneously. The hardware state persists across pause and resume
cycles within a command stream but resets during flushes since transform
feedback state does not survive command buffer boundaries.

The implementation enables the full transform feedback capability with
support for 4 buffers and up to 64 separate or interleaved components,
replacing the previous debug-only stub implementation.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37320>
2025-09-22 15:36:32 +00:00
..
asahi gallium: add pipe_context::resource_release to eliminate buffer refcounting 2025-09-09 20:47:38 +00:00
crocus intel: drop legacy flatshade handling 2025-09-18 14:14:11 +00:00
d3d12 d3d12: Fix leak d3d12_context::priority_manager_lock 2025-09-19 18:51:55 +00:00
etnaviv etnaviv: Implement hardware based streamout support 2025-09-22 15:36:32 +00:00
freedreno gallium,mesa/st: reverse logic for y flip for programmable sample locations 2025-09-20 01:57:04 +00:00
i915 nir: remove has_ddx_intrinsics option 2025-09-15 10:16:27 +00:00
iris iris: setup bits for ARB_texture_filter_minmax with gfx9+ 2025-09-19 05:29:35 +00:00
lima lima: implement logicops 2025-09-16 22:40:45 +00:00
llvmpipe llvmpipe: implement GL_ARB_sample_locations 2025-09-20 01:57:05 +00:00
nouveau gallium,mesa/st: reverse logic for y flip for programmable sample locations 2025-09-20 01:57:04 +00:00
panfrost panfrost: Support debugging JM context priorities with env vars 2025-09-19 10:05:46 +00:00
r300 r300/compiler: Silence array-bounds warning 2025-09-16 06:16:19 +00:00
r600 r600/sfn: clear PIPE_MAP_UNSYNCRONIZED for partial DS texture writes 2025-09-19 07:42:54 +00:00
radeonsi radeonsi: hide real modifier export behind AMD_DEBUG 2025-09-22 01:51:21 +00:00
rocket build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
softpipe ci: Update to Debian 13 (trixie) 2025-09-16 06:16:21 +00:00
svga ci: Update to Debian 13 (trixie) 2025-09-16 06:16:21 +00:00
tegra gallium: add pipe_context::resource_release to eliminate buffer refcounting 2025-09-09 20:47:38 +00:00
v3d v3d: use helpers util_writes_depth/stencil 2025-09-17 10:27:31 +00:00
vc4 gallium: add pipe_context::resource_release to eliminate buffer refcounting 2025-09-09 20:47:38 +00:00
virgl llvmpipe: fix incorrect scissor planes 2025-09-20 01:57:04 +00:00
zink zink/ci: drop gbm override now that debian has a usable xorg 2025-09-20 06:59:01 +00:00