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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user