From 56f8a1e02cf8b553688af9c7507d80bb7c119afb Mon Sep 17 00:00:00 2001 From: Viktor Walter Date: Wed, 28 Feb 2024 14:22:22 +0100 Subject: [PATCH] Removing the backup file accessing to force buildfarm to use the 'surfaceless_mesa' platform --- include/compute_lib/compute_lib.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/compute_lib/compute_lib.c b/include/compute_lib/compute_lib.c index b375940..799cece 100644 --- a/include/compute_lib/compute_lib.c +++ b/include/compute_lib/compute_lib.c @@ -46,16 +46,16 @@ int compute_lib_init(compute_lib_instance_t* inst) } fprintf(stderr, "[ComputeLib]: Opened the renderer.\n"); } - else if (access(COMPUTE_LIB_GPU_DRI_BACKUP_PATH, F_OK) == 0) { - fprintf(stderr, "[ComputeLib]: Selecting the backup renderer path %s\n", COMPUTE_LIB_GPU_DRI_BACKUP_PATH); - inst->fd = open(COMPUTE_LIB_GPU_DRI_BACKUP_PATH, O_RDWR); - if (inst->fd <= 0) { - fprintf(stderr, "[ComputeLib]: Failed to open backup renderer path %s\n", COMPUTE_LIB_GPU_DRI_BACKUP_PATH); - compute_lib_deinit(inst); - return COMPUTE_LIB_ERROR_GPU_DRI_BACKUP_PATH; - } - fprintf(stderr, "[ComputeLib]: Opened the renderer.\n"); - } + /* else if (access(COMPUTE_LIB_GPU_DRI_BACKUP_PATH, F_OK) == 0) { */ + /* fprintf(stderr, "[ComputeLib]: Selecting the backup renderer path %s\n", COMPUTE_LIB_GPU_DRI_BACKUP_PATH); */ + /* inst->fd = open(COMPUTE_LIB_GPU_DRI_BACKUP_PATH, O_RDWR); */ + /* if (inst->fd <= 0) { */ + /* fprintf(stderr, "[ComputeLib]: Failed to open backup renderer path %s\n", COMPUTE_LIB_GPU_DRI_BACKUP_PATH); */ + /* compute_lib_deinit(inst); */ + /* return COMPUTE_LIB_ERROR_GPU_DRI_BACKUP_PATH; */ + /* } */ + /* fprintf(stderr, "[ComputeLib]: Opened the renderer.\n"); */ + /* } */ else { use_hw_rendering = false; fprintf(stderr, "[ComputeLib]: Will attempt to use software rendering.\n");