package/mesa3d: enable llvm support
authorValentin Korenblit <valentin.korenblit@smile.fr>
Wed, 4 Apr 2018 16:31:20 +0000 (18:31 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 4 Apr 2018 20:52:14 +0000 (22:52 +0200)
commit3b5c24af38a53750af9f8d8dffb1a9523835e6e5
tree5ea7b5f52f0c06aa9d7c2dcedbc4d13609e724b6
parent29f04d7934b46502f856bb84f91b74b0d8c066d3
package/mesa3d: enable llvm support

This patch provides LLVM support for Mesa3D, enabling llvmpipe
software rasterizer if Gallium swrast is selected.

In case Gallium r600 is selected, llvm AMDGPU backend is built.

Having llvm installed also enables radeonsi Gallium driver, but
it is not provided with this patch as it hasn't been tested.

It uses llvm-config (host variant) installed in STAGING_DIR/usr/bin
to get LLVM libraries. Assuming that LLVM version 5.0.1 is installed,
llvm-config --libs will output -lLLVM-5.0.

Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr>
Tested-by: Jérôme Oufella <jerome.oufella@savoirfairelinux.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mesa3d/Config.in
package/mesa3d/mesa3d.mk