Skip to content

[libclc] Avoid using undefined vector3 components #115857

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

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

frasercrmck
Copy link
Contributor

Using '.hi' on a vector3 is technically allowed by the spec and is treated as a 4-element vector with an "undefined" w component. However, it's more undef/poison code for the compiler to process and remove. We can easily avoid it with a dedicated macro.

Using '.hi' on a vector3 is technically allowed by the spec and is
treated as a 4-element vector with an "undefined" w component. However,
it's more undef/poison code for the compiler to process and remove. We
can easily avoid it with a dedicated macro.
@frasercrmck frasercrmck added the libclc libclc OpenCL library label Nov 12, 2024
@frasercrmck frasercrmck requested a review from arsenm November 12, 2024 11:44
@frasercrmck frasercrmck merged commit a552487 into llvm:main Nov 12, 2024
10 checks passed
@frasercrmck frasercrmck deleted the libclc-clc-remquo-vec3 branch November 12, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libclc libclc OpenCL library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants