mesa/src/gallium/frontends
Ahmed Hesham c8d7fad153 rusticl: return correct error from clCreateSubBuffer
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>
2026-03-31 17:39:47 +00:00
..
d3d10umd d3d10umd: Add missing dependency on u_formats codegen. 2025-09-17 12:04:37 -07:00
dri meson: Add support for buidling zink + Turnip/KGSL 2026-03-31 15:00:29 +00:00
glx/xlib mesa: replace most occurrences of getenv() with os_get_option() 2025-11-06 04:36:13 +00:00
hgl mesa: remove inc_mapi 2025-08-06 20:35:26 +00:00
lavapipe lavapipe/ci: Skip flaky Android CTS test 2026-03-31 15:32:25 +00:00
mediafoundation mediafoundation: set reasonable number of reference frames if the user didn't set CODECAPI_AVEncVideoMaxNumRefFrame 2026-03-19 19:06:51 +00:00
rusticl rusticl: return correct error from clCreateSubBuffer 2026-03-31 17:39:47 +00:00
teflon gallium: add pipe_ml_device, pipe_screen::get_ml_device() 2026-03-25 16:58:05 +00:00
va frontends/va: Fix leaks when create_video_codec fails 2026-03-20 13:02:23 +00:00
wgl mesa: add force_explicit_uniform_loc_zero workaround 2026-03-18 07:28:07 +00:00