mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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:
parent
62789086e4
commit
83929f9955
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue