[Mesa-dev] [PATCH] radv: set no-signed-zeros-fp-math

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Jan 11 21:26:32 UTC 2018



On 01/11/2018 11:08 AM, Józef Kucia wrote:
> On Wed, Jan 10, 2018 at 10:31 PM, Samuel Pitoiset
> <samuel.pitoiset at gmail.com> wrote:
>> +       LLVMAddTargetDependentFunctionAttr(main_function,
>> +                                          "no-signed-zeros-fp-math",
>> +                                          "true");
>> +
> 
> Is this option safe to enable for Vulkan? The Vulkan spec in the
> "Precision and Operation of SPIR-V Instructions" section says:
> 
> "Positive and negative infinities and positive and negative zeros are
> generated as dictated by IEEE 754, but subject to the precisions
> allowed in the following table."

Yep, looks like it's not compatible, I will add this with RADV_PERFTEST 
instead.

> 


More information about the mesa-dev mailing list