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

Francisco Jerez currojerez at riseup.net
Sat Mar 21 05:58:06 PDT 2015


Tom Stellard <thomas.stellard at amd.com> writes:

> ---
>  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

Reviewed-by: Francisco Jerez <currojerez at riseup.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150321/501a5d11/attachment.sig>


More information about the mesa-dev mailing list