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:
Aaron Watry
2020-10-25 20:20:00 +01:00
committed by Marge Bot
parent 44e11aa7b4
commit e6ff50f7d3

View File

@@ -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);
}