-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Spec Descriptions for CL_UNORM_SHORT_565 and CL_UNORM_SHORT_555 #183
Comments
See point 2 on related #171 as well. |
There's been some question about exactly which bits in the 16 bit word correspond to R, G, and B as well, so we may want to cover that too. Similarly for 101010 and 101010_2. |
@b-sumner, that seems to be defined in the OpenCL 2.x specifications § 5.3.1.1 Image Format Descriptor, as follows:
Are the spec changes that are needed limited to the OpenCL C spec and the SPIR-V environment spec, or are wider changes needed? |
Can we revisit this issue? I also noticed it is missing from the spec. |
Just bumped into this again. We are missing conversion rules for |
Could we do this in two steps?
I think we could easily do (1) for the next spec release, but (2) may take more time. |
Happy to do this in steps but I have to confess I'm mainly after the more contentious side of |
There are a bunch of places in the spec that refer to "the pre-defined packed formats". Example:
The API spec debatably defines what is considered a "pre-defined packed format", but we could probably do a bit better here:
Is the notion of "pre-defined packed image formats" useful, or should we list all of the relevant image formats explicitly instead? The benefit of listing them all explicitly is that they're easily findable if you grep the spec. The disadvantage is that more places in the spec need to be updated when a new pre-defined packed format gets added (see #1223). |
The OpenCL C and SPIR-V environment specs are missing descriptions in many places regarding the
CL_UNORM_SHORT_565
andCL_UNORM_SHORT_555
image channel orders.For example:
CL_UNORM_SHORT_565
orCL_UNORM_SHORT_555
channels are converted to or from afloat
, precision requirements for the conversion, and any special conversion values.read_image
andwrite_image
built-in functions do not describe any cases forCL_UNORM_SHORT_565
orCL_UNORM_SHORT_555
.A few descriptions are also missing for
CL_UNORM_INT_101010
andCL_UNORM_INT_101010_2
, that should be fixed at the same time.The text was updated successfully, but these errors were encountered: