Skip to content

Commit 891f390

Browse files
committed
Remove tabs from indentation.
1 parent 2faf706 commit 891f390

1 file changed

Lines changed: 34 additions & 34 deletions

File tree

ocl_icd_loader.c

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -553,40 +553,40 @@ static inline void _find_and_check_platforms(cl_uint num_icds) {
553553
}
554554
#endif
555555
{
556-
switch (_assume_ICD_extension()) {
557-
case ASSUME_ICD_EXTENSION_NO:
558-
/* checking the extension as required by the specs */
559-
param_value=_malloc_clGetPlatformInfo(plt_info_ptr, p->pid, CL_PLATFORM_EXTENSIONS, "extensions");
560-
if (param_value == NULL){
561-
debug(D_WARN, "Skipping platform %i", j);
562-
continue;
563-
}
564-
debug(D_DUMP, "Supported extensions: %s", param_value);
565-
if( strstr(param_value, "cl_khr_icd") == NULL){
566-
free(param_value);
567-
debug(D_WARN, "Missing khr extension in platform %i, skipping it", j);
568-
continue;
569-
}
570-
free(param_value);
571-
break;
572-
case ASSUME_ICD_EXTENSION_YES:
573-
/* Allow to workaround a bug in the Intel ICD used
574-
* with optirun :
575-
* - https://software.intel.com/en-us/forums/opencl/topic/328091
576-
* - https://sourceforge.net/p/virtualgl/bugs/54/
577-
*/
578-
debug(D_LOG, "Assuming cl_khr_icd extension without checking for it");
579-
/* Fall through */
580-
case ASSUME_ICD_EXTENSION_YES_AND_QUIET:
581-
/* Assuming an ICD extension, so we will try to
582-
* find the ICD specific version of
583-
* clGetPlatformInfo before knowing for sure that
584-
* the cl_khr_icd is really present */
585-
break;
586-
default:
587-
debug(D_ALWAYS, "Internal error in _assume_ICD_extension, please report");
588-
break;
589-
}
556+
switch (_assume_ICD_extension()) {
557+
case ASSUME_ICD_EXTENSION_NO:
558+
/* checking the extension as required by the specs */
559+
param_value=_malloc_clGetPlatformInfo(plt_info_ptr, p->pid, CL_PLATFORM_EXTENSIONS, "extensions");
560+
if (param_value == NULL){
561+
debug(D_WARN, "Skipping platform %i", j);
562+
continue;
563+
}
564+
debug(D_DUMP, "Supported extensions: %s", param_value);
565+
if( strstr(param_value, "cl_khr_icd") == NULL){
566+
free(param_value);
567+
debug(D_WARN, "Missing khr extension in platform %i, skipping it", j);
568+
continue;
569+
}
570+
free(param_value);
571+
break;
572+
case ASSUME_ICD_EXTENSION_YES:
573+
/* Allow to workaround a bug in the Intel ICD used
574+
* with optirun :
575+
* - https://software.intel.com/en-us/forums/opencl/topic/328091
576+
* - https://sourceforge.net/p/virtualgl/bugs/54/
577+
*/
578+
debug(D_LOG, "Assuming cl_khr_icd extension without checking for it");
579+
/* Fall through */
580+
case ASSUME_ICD_EXTENSION_YES_AND_QUIET:
581+
/* Assuming an ICD extension, so we will try to
582+
* find the ICD specific version of
583+
* clGetPlatformInfo before knowing for sure that
584+
* the cl_khr_icd is really present */
585+
break;
586+
default:
587+
debug(D_ALWAYS, "Internal error in _assume_ICD_extension, please report");
588+
break;
589+
}
590590
}
591591
param_value=_malloc_clGetPlatformInfo(plt_info_ptr, p->pid, CL_PLATFORM_ICD_SUFFIX_KHR, "suffix");
592592
if (param_value == NULL){

0 commit comments

Comments
 (0)