[Libre-soc-bugs] [Bug 251] Initial 3D MESA non-accelerated software-only driver is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Aug 5 16:16:15 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=251

--- Comment #9 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to vivekvpandya from comment #7)
> (In reply to Jacob Lifshay from comment #6)
> > (In reply to vivekvpandya from comment #4)
> > > Is it okay to use fork of
> > > https://github.com/KhronosGroup/SPIRV-LLVM-Translator ?
> > > for SPIRV to LLVM translation ? Or we want to write similar library from
> > > scratch?
> > 
> > That particular library isn't currently suitable for Vulkan, it is based on
> > the OpenCL SPIR-V dialect, which is somewhat different than the Vulkan
> > SPIR-V dialect. Additionally, it is based on a really old version of LLVM
> > last I checked.
> > 
> > If you're going to base everything on Mesa, you should use the NIR code,
> > since there is already a Vulkan SPIR-V to NIR translator. You would need to
> > write the NIR to vectorized LLVM translator.
> 
> I see this commit related to LLVM 12.
> https://github.com/KhronosGroup/SPIRV-LLVM-Translator/commit/
> 501a277a0b18e6d709f4bec5e6557c9099207af4

Ok, so they updated it since I last checked.

> Also I could not find that it supports only OpenCL dialect.

They don't explicitly say so, but it becomes apparent from looking around some:
it doesn't support OpKill which is only used in fragment shaders (required for
Vulkan), it also doesn't support any of the glsl standard library (only the
OpenCL standard library), which is required for Vulkan.

https://www.khronos.org/registry/spir-v/specs/unified1/GLSL.std.450.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list