Clarify alignment requirements on ptr parameter to image RW commands#1467
Clarify alignment requirements on ptr parameter to image RW commands#1467kpet wants to merge 1 commit intoKhronosGroup:mainfrom
Conversation
The linked section does not document any meaningful requirements. Better to remove this confusing statement. Signed-off-by: Kevin Petit <kevin.petit@arm.com> Change-Id: Ie9715fa79901b6b6f3d110ed8989a8be9f7133ed
|
I was about to merge this as a non-contentious fix, but it looks like it was explicitly added as a resolution for the old (private) Khronos bugzilla 14710, so it's probably worth a bit of additional discussion. As best I can tell, the resolution of this issue essentially requires that the pointers passed to
Regardless, we may want to tidy up this language and move it out of an appendix and into the main spec, since it's not very clear right now. |
|
Thanks for the archaeology, I expected this PR to be a good discussion starter :). There is a lot to unpack here. The linked section does of course call these function out explicitly but, as you've spotted too, it is an appendix and we've always considered appendices as not normative, though I can't find a place where this is documented. Should we either document it or change our minds? There is still a fair amount that is documented in appendices or footnotes. Many suites of the CTS do not take any particular care when allocating these pointers. The resulting pointers are still very likely to be aligned to at least "the granularity of a single channel in a pixel" given that
so maybe the CTS is satisfying this by luck (or design though given the general quality of the code, I'm inclined to believe it's luck). As you've observed too, there is no error code in that case which is not typical of easy-to-check error conditions in OpenCL. My vote would be to:
|
|
Discussed in the October 14th teleconference. Suggested actions:
(1) and (2) are things we should do. (3) and (4) need more discussion. |
The linked section does not document any meaningful requirements. Better to remove this confusing statement.
Change-Id: Ie9715fa79901b6b6f3d110ed8989a8be9f7133ed