[Mesa-dev] GLSLstd450NMin/NMax/NClamp

Brian Paul brianp at vmware.com
Tue Nov 17 17:25:01 UTC 2020


It appears these SPIR-V extension functions don't behave as they should 
on Intel (don't know about other Vulkan drivers).

They're supposed to be NaN-aware such that if one argument is NaN, the 
other argument is returned.  From our testing, it looks like NMax works 
as expected, but not NMin or NClamp.

Looking at the SPIR-V/nir/intel code it's hard to tell what's going on 
and whether these semantics are actually being followed.

Any comments?

-Brian


More information about the mesa-dev mailing list