diff options
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r-- | src/gallium/state_trackers/clover/api/device.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp index e132656032a..3e8b3f821c3 100644 --- a/src/gallium/state_trackers/clover/api/device.cpp +++ b/src/gallium/state_trackers/clover/api/device.cpp @@ -192,7 +192,8 @@ clGetDeviceInfo(cl_device_id dev, cl_device_info param, return scalar_property<size_t>(buf, size, size_ret, 0); case CL_DEVICE_ENDIAN_LITTLE: - return scalar_property<cl_bool>(buf, size, size_ret, CL_TRUE); + return scalar_property<cl_bool>(buf, size, size_ret, + dev->endianness() == PIPE_ENDIAN_LITTLE); case CL_DEVICE_AVAILABLE: case CL_DEVICE_COMPILER_AVAILABLE: |