mesa/src/broadcom
Jose Maria Casanova Crespo 69880047d8 v3dv: use shared v3d_tile_alloc_sizes() and 128B initial blocks
Replace the inline tile_alloc/TSDA sizing in v3dv_job_allocate_tile_state()
with a call to the new v3d_tile_alloc_sizes() helper. This switches from
64B to 128B initial tile alloc blocks (avoiding overflow for simple draws)
and from a flat 512KB headroom to a draw-proportional formula.

Set tile_allocation_initial_block_size and tile_allocation_block_size
in all TILE_BINNING_MODE_CFG emissions and update the
TILE_LIST_INITIAL_BLOCK_SIZE packets to match.

Benchmarked on RPi5 (V3D 7.1) with GfxBench Vulkan Aztec Ruins at
1920x1040. Average tile_alloc BO size dropped 75% (535 KB to 132 KB)
with 20% fewer OOM events (521 to 417) and no FPS regression.

This avoids exhausting GPU memory when multiple blit or fill jobs
are batched in the same command buffer, with a huge reduction of
the memory footprint avoiding the 512 KB of the tile_alloc per batched
job.

Reviewed-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40554>
2026-04-13 10:31:21 +00:00
..
ci v3dv/ci: add link to failing CTS test 2026-04-01 09:27:22 +00:00
cle broadcom/cle: parse once the XML spec 2026-04-06 09:17:15 +00:00
clif broadcom: use Mesa logging functions 2026-04-06 07:40:55 +00:00
common broadcom/common: add tile alloc block size macros and sizing helper 2026-04-13 10:31:20 +00:00
compiler broadcom: use Mesa logging functions 2026-04-06 07:40:55 +00:00
drm-shim broadcom: use Mesa logging functions 2026-04-06 07:40:55 +00:00
ds mesa: replace most occurrences of getenv() with os_get_option() 2025-11-06 04:36:13 +00:00
perfcntrs broadcom: use Mesa logging functions 2026-04-06 07:40:55 +00:00
qpu broadcom: use Mesa logging functions 2026-04-06 07:40:55 +00:00
simulator broadcom: use Mesa logging functions 2026-04-06 07:40:55 +00:00
vulkan v3dv: use shared v3d_tile_alloc_sizes() and 128B initial blocks 2026-04-13 10:31:21 +00:00
.editorconfig
meson.build broadcom: Add perfetto data source 2024-12-13 12:29:11 +00:00