diff --git a/src/gallium/frontends/clover/api/memory.cpp b/src/gallium/frontends/clover/api/memory.cpp index ccf5edf620e..cf29657f675 100644 --- a/src/gallium/frontends/clover/api/memory.cpp +++ b/src/gallium/frontends/clover/api/memory.cpp @@ -260,7 +260,7 @@ clGetSupportedImageFormats(cl_context d_ctx, cl_mem_flags flags, validate_flags(NULL, flags, false); - if (r_buf && !r_count) + if (r_buf && !count) throw error(CL_INVALID_VALUE); if (r_buf)