Skip to content

Commit 191efdd

Browse files
[SYCL] Fix sRGB device info (#4145)
fix for overlooked side-effect of setting return value for sRGB device info. Signed-off-by: Chris Perkins <[email protected]>
1 parent e1d8cfb commit 191efdd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/plugins/opencl/pi_opencl.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,11 @@ pi_result piDeviceGetInfo(pi_device device, pi_device_info paramName,
184184
case PI_DEVICE_INFO_UUID:
185185
case PI_DEVICE_INFO_ATOMIC_64:
186186
return PI_INVALID_VALUE;
187-
case PI_DEVICE_INFO_IMAGE_SRGB:
187+
case PI_DEVICE_INFO_IMAGE_SRGB: {
188+
cl_bool result = true;
189+
std::memcpy(paramValue, &result, sizeof(cl_bool));
188190
return PI_SUCCESS;
189-
191+
}
190192
default:
191193
cl_int result = clGetDeviceInfo(
192194
cast<cl_device_id>(device), cast<cl_device_info>(paramName),

0 commit comments

Comments
 (0)