|
1 | 1 | /* |
2 | 2 | This file is part of darktable, |
3 | | - Copyright (C) 2010-2025 darktable developers. |
| 3 | + Copyright (C) 2010-2026 darktable developers. |
4 | 4 |
|
5 | 5 | darktable is free software: you can redistribute it and/or modify |
6 | 6 | it under the terms of the GNU General Public License as published by |
@@ -3152,12 +3152,16 @@ void *dt_opencl_copy_host_to_device_constant(const int devid, |
3152 | 3152 | cl_mem dev = (darktable.opencl->dlocl->symbols->dt_clCreateBuffer) |
3153 | 3153 | (darktable.opencl->dev[devid].context, mode, size, host, &err); |
3154 | 3154 |
|
3155 | | - if(err != CL_SUCCESS || oversize) |
| 3155 | + if(err != CL_SUCCESS) |
3156 | 3156 | dt_print(DT_DEBUG_OPENCL, |
3157 | 3157 | "[opencl copy_host_to_device_constant]" |
3158 | | - " could not allocate %sbuffer on device '%s' id=%d: %s", |
3159 | | - oversize ? "oversize " : "", |
| 3158 | + " could not allocate buffer on device '%s' id=%d: %s", |
3160 | 3159 | darktable.opencl->dev[devid].fullname, devid, cl_errstr(err)); |
| 3160 | + if(oversize) |
| 3161 | + dt_print(DT_DEBUG_OPENCL | DT_DEBUG_VERBOSE, |
| 3162 | + "[opencl copy_host_to_device_constant]" |
| 3163 | + " fallback to non-const buffer on device '%s' id=%d", |
| 3164 | + darktable.opencl->dev[devid].fullname, devid); |
3161 | 3165 |
|
3162 | 3166 | dt_opencl_memory_statistics(devid, dev, OPENCL_MEMORY_ADD); |
3163 | 3167 |
|
|
0 commit comments