nir: Fix printing of ~0 .locations.
authorEric Anholt <eric@anholt.net>
Thu, 19 Dec 2019 00:46:41 +0000 (16:46 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Jan 2020 23:29:10 +0000 (23:29 +0000)
commitd55573aac631af93a738944fc705967c8ae91453
tree0841723a3b60d10c720a003818b61a04f73af8d7
parent65641e0c7a29944e19cc068457ee0d59cace8096
nir: Fix printing of ~0 .locations.

I kept wondering what "429" meant in variable declarations, when it was
just a truncated ~0 snprintf.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3423>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3423>
src/compiler/nir/nir_print.c