gallium/util: reduce util_snprintf() calls in debug_flush_might_flush_cb()
authorBrian Paul <brianp@vmware.com>
Mon, 24 Apr 2017 18:58:22 +0000 (12:58 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Apr 2017 17:38:00 +0000 (11:38 -0600)
commita36a1ea80acfd28a36d89b2bfa914ab48768048d
treee510e30595a4cab13fba5be774d1ec5b03effba4
parent495840658e437117bbae298e6e72e057b333e426
gallium/util: reduce util_snprintf() calls in debug_flush_might_flush_cb()

We only need to construct the debug message if the mapped_sync flag is set.
This should make the function faster since the flag is usually false.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/auxiliary/util/u_debug_flush.c