mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
clover: implement CL_IMAGE_NUM_MIP_LEVELS and CL_IMAGE_NUM_SAMPLES
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Serge Martin <edb@sigluy.net> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9212>
This commit is contained in:
parent
44e11aa7b4
commit
e6ff50f7d3
1 changed files with 8 additions and 0 deletions
|
|
@ -454,6 +454,14 @@ clGetImageInfo(cl_mem d_mem, cl_image_info param,
|
|||
buf.as_scalar<size_t>() = img.depth();
|
||||
break;
|
||||
|
||||
case CL_IMAGE_NUM_MIP_LEVELS:
|
||||
buf.as_scalar<cl_uint>() = 0;
|
||||
break;
|
||||
|
||||
case CL_IMAGE_NUM_SAMPLES:
|
||||
buf.as_scalar<cl_uint>() = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
throw error(CL_INVALID_VALUE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue