asahi: Add perf debug for generate_mipmap
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 11 Mar 2023 21:46:45 +0000 (16:46 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Apr 2023 03:23:03 +0000 (03:23 +0000)
commit3a4920e92885ec99824c7e514ed1faa487d1ad98
tree2e2be754130ab6a7142f6aedfbcd005f72920456
parent3a87d2cfbd2245f6d992fb49ca550cc1fd98b8d6
asahi: Add perf debug for generate_mipmap

The current implementation leaves a lot of perf on the table, so call it out on
ASAHI_MESA_DEBUG=perf to help debugging perf problems, especially if this
ever happens in a real application (i.e. not a benchmark).

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22353>
src/gallium/drivers/asahi/agx_pipe.c