Text of the extension is available here:https://github.com/KhronosGroup/OpenCL-Docs/blob/master/ext/cl_khr_mipmap_image.asciidoc
Patch by Ilya Mashkov
Differential D71460
[OpenCL] Fix support for cl_khr_mipmap_image_writes AlexeySotkin on Dec 13 2019, 4:14 AM. Authored by
Details Text of the extension is available here:https://github.com/KhronosGroup/OpenCL-Docs/blob/master/ext/cl_khr_mipmap_image.asciidoc Patch by Ilya Mashkov
Diff Detail
Event TimelineComment Actions What about get_image_num_mip_levels functions defined in the extension specification? Edit: I mean, should the get_image_num_mip_levels(write_only img) function be only available if cl_khr_mipmap_image_writes extension is supported, or cl_khr_mipmap_image is enough?
Comment Actions I think cl_khr_mipmap_image is enough, because "the cl_khr_mipmap_image_writes extension adds built-in functions that can be used to write a mip-mapped image", while get_image_num_mip_levels(write_only img) only retrieve a property of the image.
Comment Actions LGTM! Thanks!
Comment Actions I have updated the TableGen OpenCL builtin definitions accordingly in 91b3083aecd ("[OpenCL] Fix tblgen support for cl_khr_mipmap_image_writes", 2020-02-05). |
Do we actually need pragma for this extension? I.e. does it need to activate any special mode in the compiler?