[llvm-bugs] [Bug 47919] New: image2d_depth_t shouldn't be available in OpenCL 1.1
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 20 10:17:49 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47919
Bug ID: 47919
Summary: image2d_depth_t shouldn't be available in OpenCL 1.1
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangbugs at nondot.org
Reporter: marco.antognini at arm.com
CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org
When compiling the following for OpenCL 1.1 Clang doesn't reject the usage of
image2d_depth_t.
float bar(read_only image2d_depth_t image, sampler_t sampler, int2 coord) {
return read_imagef(image, sampler, coord);
}
https://godbolt.org/z/MsjKjr
The image2d_depth_t type
- is defined in extension cl_khr_depth_images for OpenCL 1.2 (and the
extension is disabled by default), and
- is a core feature in OpenCL 2.0 and later.
Interestingly, Clang accepts this program when using -fdeclare-opencl-builtins.
It is rejected when using `opencl-c.h`, but for another (valid) reason: the
overload of read_imagef using this image type is not available.
Somewhat related to Bug 47882.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201020/b95f5bcd/attachment.html>
More information about the llvm-bugs
mailing list