https://bugs.freedesktop.org/show_bug.cgi?id=96495
Bug ID: 96495 Summary: [radeonsi] can't compile shaders with pow(10.0, x) Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: vegorov180@gmail.com QA Contact: dri-devel@lists.freedesktop.org
For example https://www.shadertoy.com/view/MddGzf LLVM somewhere optimizes it into exp10f:
56126: message: shader compiler issue 2: LLVM diagnostic (error): <unknown>:0:0: in function main <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float, float, float, float }> ([17 x <16 x i8>] addrspace(2)*, [16 x <16 x i8>] addrspace(2)*, [32 x <8 x i32>] addrspace(2)*, [16 x <8 x i32>] addrspace(2)*, [16 x <4 x i32>] addrspace(2)*, float, i32, <2 x i32>, <2 x i32>, <2 x i32>, <3 x i32>, <2 x i32>, <2 x i32>, <2 x i32>, float, float, float, float, float, i32, i32, float, i32): unsupported call to function exp10f LLVM triggered Diagnostic Handler: <unknown>:0:0: in function main <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float, float, float, float }> ([17 x <16 x i8>] addrspace(2)*, [16 x <16 x i8>] addrspace(2)*, [32 x <8 x i32>] addrspace(2)*, [16 x <8 x i32>] addrspace(2)*, [16 x <4 x i32>] addrspace(2)*, float, i32, <2 x i32>, <2 x i32>, <2 x i32>, <3 x i32>, <2 x i32>, <2 x i32>, <2 x i32>, float, float, float, float, float, i32, i32, float, i32): unsupported call to function exp10f
56126: message: shader compiler issue 3: LLVM compile failed LLVM failed to compile shader radeonsi: can't create a shader
https://bugs.freedesktop.org/show_bug.cgi?id=96495
--- Comment #1 from Nicolai Hähnle nhaehnle@gmail.com --- Hi Vladislav, thanks for the report. I'm looking into it.
https://bugs.freedesktop.org/show_bug.cgi?id=96495
--- Comment #2 from Nicolai Hähnle nhaehnle@gmail.com --- The patch at http://reviews.llvm.org/D21282 fixes this for me.
https://bugs.freedesktop.org/show_bug.cgi?id=96495
Daniel Scharrer daniel@constexpr.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Daniel Scharrer daniel@constexpr.org --- The patch linked in comment #2 has been merged and the shadertoy testcase works for me with git Mesa & LLVM.
dri-devel@lists.freedesktop.org