aux/trace: fix GALLIUM_TRACE_NIR handling

this now correctly doesn't dump nir when the counter is zero

Fixes: f99eab23ad ("aux/trace: delete GALLIUM_TRACE_NIR log message")

Reviewed-by: Matti Hämäläinen <ccr@tnsp.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22164>
This commit is contained in:
Mike Blumenkrantz 2023-03-22 12:58:57 -04:00 committed by Marge Bot
parent 62789086e4
commit 83929f9955

View file

@ -658,7 +658,7 @@ void trace_dump_nir(void *nir)
if (!dumping)
return;
if (nir_count < 0) {
if (--nir_count < 0) {
fputs("<string>...</string>", stream);
return;
}