We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example input:
void kernel foo(global float4* A) { float4 value; value.w = 1111.0f; *A = value; }
Produces assembly including this:
%13 = OpUndef %float %float_1111 = OpConstant %float 1111 %15 = OpConstantComposite %v4float %13 %13 %13 %float_1111 %16 = OpSpecConstant %uint 1 %17 = OpSpecConstant %uint 1 %18 = OpSpecConstant %uint 1 %gl_WorkGroupSize = OpSpecConstantComposite %v3uint %16 %17 %18 %20 = OpVariable %_ptr_Private_v3uint Private %gl_WorkGroupSize %21 = OpVariable %_ptr_StorageBuffer__struct_5 StorageBuffer %22 = OpFunction %void None %9 %23 = OpLabel %24 = OpAccessChain %_ptr_StorageBuffer_v4float %21 %uint_0 %uint_0 OpStore %24 %15 OpReturn OpFunctionEnd
Some drivers have trouble with the OpConstantComposite. They happen to work if we use %13 = OpConstantNull %float instead.
The text was updated successfully, but these errors were encountered:
Add -hack-undef: Use OpConstantNull instead of OpUndef
4d5ae87
Work around drive bug documented in google#95
75d54be
Use -hack-undef to work around this problem.
Sorry, something went wrong.
This is solved well enough now.
No branches or pull requests
Example input:
Produces assembly including this:
Some drivers have trouble with the OpConstantComposite. They happen to work if we use
%13 = OpConstantNull %float
instead.
The text was updated successfully, but these errors were encountered: