[Mesa-dev] compiling OpenCL C to NIR
Eric Anholt
eric at anholt.net
Wed Jan 17 20:44:21 UTC 2018
Tomeu Vizoso <tomeu.vizoso at collabora.com> writes:
> Hi,
>
> I'm still trying to estimate the work required to support OpenCL on
> Freedreno, and as part of that I have given a try to put Khronos'
> LLVM-SPIRV into a shape that Mesa can depend on:
>
> https://gitlab.collabora.com/tomeu/llvm-spirv
>
> I basically took Khronos' master branch, rewrote history to remove
> anything not SPIRV-specific, and applied on top Nic's changes to match
> LLVM 6.0. Also borrowed some build system changes from clspv.
>
> Hopefully at some point this will become something that can be merged
> into LLVM (probably as a target), but that doesn't seem to be close
> enough and right now it's blocking other work.
>
> Once/if I start working on this in earnest, my first steps will be
> making it a proper FOSS project to which people can contribute, and then
> have Clover use it to pass SPIR-V to spirv-to-nir and from there to
> Gallium drivers that are able to consume NIR.
>
> Have checked with a few simple CL C kernels that spirv-to-nir is able to
> consume the SPIRV that llvm-spirv produces, so I think this approach
> will allows us to progressively advance on spec coverage by working
> mostly on spirv2nir, Clover and the Gallium drivers.
>
> Thanks to everybody who has given feedback so far!
This sounds really nice! I'd love to take a look at this once I get the
GLES3.1 compute stuff on VC5 working.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180117/6ca17a09/attachment-0001.sig>
More information about the mesa-dev
mailing list