-
Notifications
You must be signed in to change notification settings - Fork 199
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
Escape subnormal values #1953
Escape subnormal values #1953
Conversation
Section 8.3.3 of the C spec specifically allows sampling to flush denorms, so this change seems to be long overdue. |
Reviewing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm OK with this, but noting for completeness: this change removes all fp32 and fp16 denorm values from the input data. If we want to have some coverage for denorm inputs still, we will want to continue to include denorm inputs, and instead we will want to handle cases where denorms are preserved and when denorms are flushed to zero.
A bit of spec archaeology, for the Khronos folks:
|
Currently we don't escape subnormal values when generating image data. In sampler read tests, we use `!=` to check the two values even when it is floating-point data, which requires the two values are bitwise equal. However, a sampler might flush subnormal values, causing the test case to fail. In this patch, when generating random image data, we escape subnormal values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approving, looks like only whitespace / formatting changed.
I don't have privileges to merge the PR. Can someone do it for me? Thanks! |
It'd be nice to get one more approval before merging - @silverclaw or @lakshmih maybe? If not, we'll aim to merge in our next teleconference, on Tuesday (June 4th). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! Merging. |
Currently we don't escape subnormal values when generating image data. In sampler read tests, we use
!=
to check the two values even when it is floating-point data, which requires the two values are bitwise equal. However, a sampler might flush subnormal values, causing the test case to fail.In this patch, when generating random image data, we escape subnormal values.