From e6ff50f7d3b67260dba91c749da3c1241b15b7ee Mon Sep 17 00:00:00 2001 From: Aaron Watry Date: Sun, 25 Oct 2020 20:20:00 +0100 Subject: [PATCH] clover: implement CL_IMAGE_NUM_MIP_LEVELS and CL_IMAGE_NUM_SAMPLES Signed-off-by: Karol Herbst Reviewed-by: Serge Martin Reviewed-by: Francisco Jerez Part-of: --- src/gallium/frontends/clover/api/memory.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/frontends/clover/api/memory.cpp b/src/gallium/frontends/clover/api/memory.cpp index 743174cba30..d3039d47ba1 100644 --- a/src/gallium/frontends/clover/api/memory.cpp +++ b/src/gallium/frontends/clover/api/memory.cpp @@ -454,6 +454,14 @@ clGetImageInfo(cl_mem d_mem, cl_image_info param, buf.as_scalar() = img.depth(); break; + case CL_IMAGE_NUM_MIP_LEVELS: + buf.as_scalar() = 0; + break; + + case CL_IMAGE_NUM_SAMPLES: + buf.as_scalar() = 0; + break; + default: throw error(CL_INVALID_VALUE); }