mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
clover/spirv: hook up spir-v environment for 3.0
For now just use the 1.2 env. Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7468>
This commit is contained in:
parent
7230f39c1a
commit
558325c4c5
1 changed files with 4 additions and 1 deletions
|
|
@ -652,7 +652,10 @@ namespace {
|
|||
|
||||
spv_target_env
|
||||
convert_opencl_str_to_target_env(const std::string &opencl_version) {
|
||||
if (opencl_version == "2.2") {
|
||||
// Pick 1.2 for 3.0 for now
|
||||
if (opencl_version == "3.0") {
|
||||
return SPV_ENV_OPENCL_1_2;
|
||||
} else if (opencl_version == "2.2") {
|
||||
return SPV_ENV_OPENCL_2_2;
|
||||
} else if (opencl_version == "2.1") {
|
||||
return SPV_ENV_OPENCL_2_1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue