Skip to content

Commit

Permalink
Removing the backup file accessing to force buildfarm to use the 'sur…
Browse files Browse the repository at this point in the history
…faceless_mesa' platform
  • Loading branch information
ViktorWalter committed Feb 28, 2024
1 parent 84ac7b5 commit 56f8a1e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions include/compute_lib/compute_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 56f8a1e

Please sign in to comment.