diff options
author | Jan Vesely <[email protected]> | 2016-08-28 04:08:15 -0400 |
---|---|---|
committer | Jan Vesely <[email protected]> | 2016-08-29 14:40:15 -0400 |
commit | 083746bc4811944dcc25c5b6589d7df1bc95eb02 (patch) | |
tree | 3ab616555042e4aba114295c7d774e061d98470e /src/gallium/state_trackers/clover/api | |
parent | c7af84968d4ee0f67c46c347c6fb83d6fbc83ef3 (diff) |
clover: Use device cap to query pointer size instead of hardcoded 32bits
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97513
Signed-off-by: Jan Vesely <[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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp index 11f21e94eae..f7bd61b929b 100644 --- a/src/gallium/state_trackers/clover/api/device.cpp +++ b/src/gallium/state_trackers/clover/api/device.cpp @@ -158,7 +158,7 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param, break; case CL_DEVICE_ADDRESS_BITS: - buf.as_scalar<cl_uint>() = 32; + buf.as_scalar<cl_uint>() = dev.address_bits(); break; case CL_DEVICE_MAX_READ_IMAGE_ARGS: |