Closed shiltian closed 1 month ago
Section 8.3.3 of the C spec specifically allows sampling to flush denorms, so this change seems to be long overdue.
Reviewing
A bit of spec archaeology, for the Khronos folks:
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).
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.