to run you need some old libraries:
just download, extract and use LD_LIBRARY_PATH
it aborts with
extra entries in SSA def uses:
Christoph Haag tested without nir_validate and for him it hung.
with some print debugging, it looks like the failing validate is here:
which is directly after spirv_to_nir. I think it is a reasonable assumption that this is a spirv_to_nir bug.
Created attachment 140254 [details]
Attached is the failing shader. spirv2nir is enough to trigger if you add a nir_validate_shader call at the end.
Seems like the validation issue was fixed by the deref rewrite, and that has been upstreamed now.
However, now I get the hang too ...
Moving back to the radv-component since there is no hint at the moment that it is an issue on anv too.
(In reply to Bas Nieuwenhuizen from comment #3)
> Seems like the validation issue was fixed by the deref rewrite, and that has
> been upstreamed now.
That makes me suspicious. If we were getting a validation error before, likely something is still going wrong.
I just sent two patches for stable which fix the validation issues. Turns out there's nothing wrong with spirv_to_nir, just the validator having issues. Sadly, that means the hang is likely real. :-(
The following patch fixes a crash on GFX8:
The crash on GFX8 should be fixed with https://cgit.freedesktop.org/mesa/mesa/commit/?id=4c43ec461de4f122d5d6566361d064c816e4ef69
Next step is to test with GFX9.
I can't reproduce a GPU hang on GFX9 with latest mesa/llvm. Closing.