aco: Fixes compiling error about char8_t with c++20
authorYonggang Luo <luoyonggang@gmail.com>
Sat, 24 Sep 2022 18:47:00 +0000 (02:47 +0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 13:28:33 +0000 (13:28 +0000)
commit091249dff4c696c5b45a04800963081f5431fa5f
tree76dfcffdf8b7b99a7c0c5280be4fead83a36c8a4
parent8ace68543227d980c7fa581f91a0577062cd5982
aco: Fixes compiling error about char8_t with c++20

The error is:
../mesa/src/amd/compiler/aco_register_allocation.cpp:382:7: error: no matching function for call to 'printf'
      printf(u8"☐");

Fixes: 209a89e51d1 ("aco: Convert to use u8 literal for Unicode character to fixes msvc warning")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7318

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Marcus Seyfarth <m.seyfarth@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18796>
src/amd/compiler/aco_register_allocation.cpp