util/log: Add support for logging once.
authorEmma Anholt <emma@anholt.net>
Fri, 18 Feb 2022 18:49:24 +0000 (10:49 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 6 Apr 2022 00:04:14 +0000 (00:04 +0000)
commit04cdd41fdca073f1e225522921a252836654cd3c
tree3ad45162bf810087789936670dade636233b5cc7
parentad0fcaf1eecf9555bbf02b374772ac6f266e2d27
util/log: Add support for logging once.

These are not data-race safe (like many other once patterns in Mesa), so
they might not log exactly once, but it should be good enough for not
spamming the console.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14999>
src/util/log.h