aco: Fix format string used when raising validation errors
authorTony Wasserka <tony.wasserka@gmx.de>
Wed, 4 Nov 2020 11:44:10 +0000 (12:44 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Nov 2020 17:56:18 +0000 (17:56 +0000)
commit1a1099c54f1c09674a27e8a1ce196a05ee2fb467
tree25febf667bcf2e2734c5a93876338dabd7864658
parent61d2badbf472bec3da16f5faca6f668d2164e101
aco: Fix format string used when raising validation errors

Validation errors mention the pretty-printed instruction including
operands with the reserved % character, which caused vasprintf to
expect more format arguments than aco provided.

Fixes: c2b1978aa47c ("aco: rework the way various compilation/validation errors are reported")
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7442>
src/amd/compiler/aco_validate.cpp