mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 02:08:10 +02:00
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> |
||
|---|---|---|
| .. | ||
| asahi | ||
| crocus | ||
| d3d12 | ||
| etnaviv | ||
| freedreno | ||
| i915 | ||
| iris | ||
| lima | ||
| llvmpipe | ||
| nouveau | ||
| panfrost | ||
| r300 | ||
| r600 | ||
| radeonsi | ||
| rocket | ||
| softpipe | ||
| svga | ||
| tegra | ||
| v3d | ||
| vc4 | ||
| virgl | ||
| zink | ||