radeonsi: LLVM failed to compile a shader correctly: SGPR:VGPR usage is (...), but the hw limit is (...) (bisected)
Hello,
When building recent versions of radeonsi from main I get LLVM shader build errors on vega 64. I am using the "basemark" benchmark in this case. Errors appear right at the start of the main window, not during runs.
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:8, but the hw limit is 128:4
What is weird is that this seems to vary, one run can be:
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:8, but the hw limit is 128:4
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:8, but the hw limit is 128:4
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:8, but the hw limit is 128:4
and the next one be:
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:8, but the hw limit is 128:4
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:12, but the hw limit is 128:4
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:8, but the hw limit is 128:4
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:8, but the hw limit is 128:4
LLVM failed to compile a shader correctly: SGPR:VGPR usage is 32:12, but the hw limit is 128:4
-> More errors, and 32:12 instead of 32:8, whatever this means
Anyway, I've bisected the commit that show this error first to be:
commit 02fe3c32cdfc3cf48cd691d6321978b8d4c3e61b
Author: Pierre-Eric Pelloux-Prayer <pelloux@gmail.com>
Date: Thu Jan 18 15:07:38 2024 +0100
ac, radeonsi: remove has_syncobj, has_fence_to_handle
syncobj support is now required so these features are always
available.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24724>
Using libdrm 2.4.120