Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Contradictory wording of cl_image_desc specification #1333

Open
shajder opened this issue Mar 5, 2025 · 0 comments
Open

Contradictory wording of cl_image_desc specification #1333

shajder opened this issue Mar 5, 2025 · 0 comments

Comments

@shajder
Copy link

shajder commented Mar 5, 2025

Description of image_row_pitch (the same refers to image_slice_pitch) seems mutually contradictory. First spec says:

The image_row_pitch must be zero if ... . If image_row_pitch is zero and the image is created from an external memory handle, then the image row pitch is implementation-defined.

which implies that in some circumstances image_row_pitch may be zero, in others it must be zero. In the same paragraph spec says:

The image row pitch must be ≥ image_width × the size of an image element in bytes, and must be a multiple of the size of an image element in bytes.

Shouldn't this sentence begin with: "Otherwise, the image pitch must ..." ?

@shajder shajder changed the title contradictory wording of cl_image_desc specification Contradictory wording of cl_image_desc specification Mar 5, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant