diff options
author | Tom Stellard <[email protected]> | 2013-07-09 21:21:40 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2013-07-22 22:45:20 +0200 |
commit | 8c9d3c62f60a2819948bdfb005600cdc10aa2547 (patch) | |
tree | 41d47c73c5edd95c3ba341baceb7fd9a597d6e15 /src/gallium/state_trackers/clover/api | |
parent | 4e90bc9a12bea93c6b5522abe8151a8cfe1d6d1d (diff) |
clover: Return correct value for CL_DEVICE_ENDIAN_LITTLE
Query the driver using PIPE_CAP_ENDIANNESS rather than always returning
true.
Cc: [email protected]
Reviewed-by: Francisco Jerez <[email protected]>
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: |