[Mesa-dev] [PATCH] clover: The unit for CL_DEVICE_MEM_BASE_ADDR_ALIGN is bits not bytes
Tom Stellard
thomas.stellard at amd.com
Fri Mar 20 19:08:14 PDT 2015
---
src/gallium/state_trackers/clover/api/device.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/state_trackers/clover/api/device.cpp b/src/gallium/state_trackers/clover/api/device.cpp
index 43e7475..bc93f91 100644
--- a/src/gallium/state_trackers/clover/api/device.cpp
+++ b/src/gallium/state_trackers/clover/api/device.cpp
@@ -196,6 +196,9 @@ clGetDeviceInfo(cl_device_id d_dev, cl_device_info param,
break;
case CL_DEVICE_MEM_BASE_ADDR_ALIGN:
+ buf.as_scalar<cl_uint>() = 128 * 8;
+ break;
+
case CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE:
buf.as_scalar<cl_uint>() = 128;
break;
--
2.0.4
More information about the mesa-dev
mailing list