mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 00:08:09 +02:00
From the OpenCL specification, `clCreateSubBuffer` should return: `CL_MISALIGNED_SUB_BUFFER_OFFSET` if there are no devices in `context` associated with `buffer` for which the `origin` field of the `cl_buffer_region` structure passed in `buffer_create_info` is aligned to the `CL_DEVICE_MEM_BASE_ADDR_ALIGN` value. This was previously unhandled in the entrypoint, marked as TODO. Add two functions to `Device` for querying the address alignment in both bits and bytes, for convenience. Properly retrieving the alignment value from the underlying device/screen is still marked as TODO. Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40726> |
||
|---|---|---|
| .. | ||
| d3d10umd | ||
| dri | ||
| glx/xlib | ||
| hgl | ||
| lavapipe | ||
| mediafoundation | ||
| rusticl | ||
| teflon | ||
| va | ||
| wgl | ||