[Mesa-dev] GLSLstd450NMin/NMax/NClamp

Brian Paul brianp at vmware.com
Tue Nov 17 20:59:38 UTC 2020


On 11/17/2020 11:45 AM, Ian Romanick wrote:
> On 11/17/20 9:25 AM, Brian Paul wrote:
>>
>> 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.
> 
> Do you have some specific test cases that fail?

Yeah, but they come from WHCK and I don't have a small test case.

I'll try your patch series and see what happens.

-Brian

> 
>> 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
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fmesa-dev&data=04%7C01%7Cbrianp%40vmware.com%7Ca9f0c2e6cfa846f3b20408d88b28f40d%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637412355305449546%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=dWV4%2Bsq4B7xBiCxRmyTj7zM4b2Xfl%2BLjtdll6qHhUAg%3D&reserved=0
> 



More information about the mesa-dev mailing list