Skip to content

Conversation

lakshmih
Copy link
Contributor

RGBx is defined as a 4 channel format where the 4th channel is ignored (5.3.1.1)

RGBx is defined as a 4 channel format where the 4th channel is ignored (5.3.1.1)
case CL_sRGB:
case CL_sRGBx: return 3;

case CL_RGBx:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can definitely see places where it is wrong to return "3" vs. "4" for CL_RGBx, but have you checked that there are no places where we will check the fourth "ignored" channel if we return "4" instead of "3"?

I think we should also keep CL_RGBx and CL_sRGBx in sync, so if we do end up moving CL_RGBx, we should move CL_sRGBx also.

@bashbaug
Copy link
Contributor

bashbaug commented Sep 8, 2025

I'm going to remove "focused review" while the comment above is being addressed - thanks!

@lakshmih
Copy link
Contributor Author

lakshmih commented Sep 8, 2025

Moved sRGBx as well to channel count 4. Review and test did not uncover any places where the 4th channel would be checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants