clover: Advertise cl_khr_il_program
v2: * Change the code to avoid the macro (Karol Herbst, Francisco Jerez); * Update the code to add a `cl_name_version`. Reviewed-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Pierre Moreau <dev@pmoreau.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2078>
This commit is contained in:
parent
31ce49e6b2
commit
af09db6e58
|
@ -204,6 +204,9 @@ ext_funcs = {
|
|||
|
||||
// cl_khr_icd
|
||||
{ "clIcdGetPlatformIDsKHR", reinterpret_cast<void *>(IcdGetPlatformIDsKHR) },
|
||||
|
||||
// cl_khr_il_program
|
||||
{ "clCreateProgramWithILKHR", reinterpret_cast<void *>(CreateProgramWithILKHR) },
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
|
|
|
@ -367,6 +367,9 @@ device::supported_extensions() const {
|
|||
vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_fp16" } );
|
||||
if (svm_support())
|
||||
vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_arm_shared_virtual_memory" } );
|
||||
if (!clover::spirv::supported_versions().empty() &&
|
||||
supports_ir(PIPE_SHADER_IR_NIR_SERIALIZED))
|
||||
vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_il_program" } );
|
||||
return vec;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue