cwabbott0 / lima_compiler

standalone GLSL ES compiler for lima
Other
9 stars 3 forks source link

Lima Shader Compiler

This is a project to integrate the compiler backends that were being developed in open-gpu-tools with the Mesa shader compiler. Eventually, there will be both a near drop-in replacement for the Mali offline shader compiler (for Mali-200 and Mali-400 only for now...) and a LD_PRELOAD'able library that can replace the internal shader compiler in the Mali drivers for ES 2.0 apps, for testing and comparison purposes.

In order to get a standalone version of Mesa's GLSL IR, this is based on the glsl-optimizer project.

Building

Linux and OSX

to build the stanalone compiler, in the root directory run:

make standalone

and for the LD_PRELOAD'able library:

make lib

or just run "make" to build both. The standalone compiler will be at src/lima/limasc, and the library will be at src/lima/liblimasc.so.

Windows

Have fun.

Dev Notes

Pulling Mesa upstream:

git fetch upstream
git merge upstream/master
sh removeDeletedByUs.sh
# inspect files, git rm unneeded ones, fix conflicts etc.
# git commit

Rebuilding flex/bison parsers: