[Mesa-dev] [PATCH] clover: The unit for CL_DEVICE_MEM_BASE_ADDR_ALIGN is bits not bytes

Jan Vesely jan.vesely at rutgers.edu
Fri Mar 20 23:05:24 PDT 2015


On Sat, 2015-03-21 at 02:08 +0000, Tom Stellard wrote:
> ---
>  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;

Reviewed-by: Jan Vesely <jan.vesely at rutgers.edu>
-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150321/b0950032/attachment.sig>


More information about the mesa-dev mailing list