Skip to content

Fix test shader vulkan_tensor_postprocessing.spv - #26

Open
perim wants to merge 1 commit into
ARM-software:mainfrom
perim:main
Open

Fix test shader vulkan_tensor_postprocessing.spv#26
perim wants to merge 1 commit into
ARM-software:mainfrom
perim:main

Conversation

@perim

@perim perim commented Aug 29, 2026

Copy link
Copy Markdown

Coded by Qwen using pi.dev

@roman-berger-arm roman-berger-arm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is an input issue, the behaviour of this is valid otherwise as gsls defines the result of clamp with min > max as UB or poison. Therefore, these changes should not be merged

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The glsl spec says that the result of such a clamp is undefined before std450 and poison after. So in my eyes the current behaviour is valid for all versions before std450. We can return something nonsensical to represent the poison nature of the result, but otherwise I'm not sure if this should be worked around.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants