Browse Source

mesa: build clover with native LLVM codegen support for freedreno

(From OE-Core rev: fbd9d6643ff0b345fa0e3b369eabc0efefeac5e3)

Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andrey Konovalov 2 years ago
parent
commit
b16ecb48f6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      meta/recipes-graphics/mesa/mesa.inc

+ 2 - 1
meta/recipes-graphics/mesa/mesa.inc

@@ -128,7 +128,8 @@ PACKAGECONFIG[gles] = "-Dgles1=enabled -Dgles2=enabled, -Dgles1=disabled -Dgles2
 PACKAGECONFIG[egl] = "-Degl=enabled, -Degl=disabled"
 
 # "opencl" requires libclc from meta-clang and spirv-tools from OE-Core
-PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd -Dopencl-spirv=true,-Dgallium-opencl=disabled -Dopencl-spirv=false,libclc spirv-tools"
+OPENCL_NATIVE = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', '-Dopencl-native=true', '', d)}"
+PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd -Dopencl-spirv=true ${OPENCL_NATIVE},-Dgallium-opencl=disabled -Dopencl-spirv=false,libclc spirv-tools"
 
 PACKAGECONFIG[broadcom] = ""
 PACKAGECONFIG[etnaviv] = ""