summaryrefslogtreecommitdiff
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorCaio Oliveira <caio.oliveira@intel.com>2023-05-11 17:05:26 -0700
committerMarge Bot <emma+marge@anholt.net>2023-05-17 22:58:10 +0000
commit7adf6c75efa215d59d466800ddd7a90065157d8b (patch)
treeb9550f79dd03aee0762afe1d57d9b2cb83a465ed /src/compiler/nir/nir.h
parent1a89b1a3012d98586fa6e9fbd85516e2f67f6817 (diff)
downloadmesa-7adf6c75efa215d59d466800ddd7a90065157d8b.tar.gz
spirv: Improve the 'ID is the wrong kind of value' error messages
Include the expected and actual values in the errors -- since very frequently we care about them to diagnose issues. Since these helpers are meant to be inlined, also pull the failure code out of the way into a separate function (not meant to be inlined). This way, extra calls to to_string will not harm the existing client code size. Verified this with GCC release build. Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22977>
Diffstat (limited to 'src/compiler/nir/nir.h')
0 files changed, 0 insertions, 0 deletions