Skip to content

asahi: Allow up to 2 recursive blits

Asahi Lina requested to merge asahilina/mesa:agx/recursive-blits into main

asahi: Allow up to 2 recursive blits

There's now a path from agx_transfer_map through the blitter into agx_legalize_compression, which can then trigger another blit.

Let's just allow up to 2 recursive blits and assert if we ever need more.

Found via apitrace replaying a Firefox trace with certain options.

pipe_texture_map -> u_transfer_helper_transfer_map -> agx_transfer_map -> agx_blit_to_staging -> agx_blit -> util_blitter_blit -> agx_create_sampler_view -> agx_legalize_compression -> agx_decompress -> transition_resource -> agx_blit

Signed-off-by: Asahi Lina lina@asahilina.net

Merge request reports