mesa: enable SPIR-V support for Clover

This commit is contained in:
K900 2023-01-28 16:21:49 +03:00
parent 17af0cdc15
commit 96978011e6

View File

@ -141,7 +141,11 @@ self = stdenv.mkDerivation {
# Enable RT for Intel hardware
"-Dintel-clc=enabled"
] ++ lib.optionals enableOpenCL [
"-Dgallium-opencl=icd" # Enable the gallium OpenCL frontend
# Clover, old OpenCL frontend
"-Dgallium-opencl=icd"
"-Dopencl-spirv=true"
# Rusticl, new OpenCL frontend
"-Dgallium-rusticl=true" "-Drust_std=2021"
"-Dclang-libdir=${llvmPackages.clang-unwrapped.lib}/lib"
] ++ lib.optional enablePatentEncumberedCodecs