Re: [Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI

2017-06-13 Thread Marek Olšák
On Tue, Jun 13, 2017 at 2:33 AM, Roland Scheidegger wrote: > Am 13.06.2017 um 02:05 schrieb Ilia Mirkin: >> On Mon, Jun 12, 2017 at 7:57 PM, Roland Scheidegger >> wrote: >>> FWIW surely on nv50 you could keep a single mad instruction for umad >>> (sad maybe too?). (I'm actually wondering if the

Re: [Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI

2017-06-12 Thread Roland Scheidegger
Am 13.06.2017 um 02:05 schrieb Ilia Mirkin: > On Mon, Jun 12, 2017 at 7:57 PM, Roland Scheidegger > wrote: >> FWIW surely on nv50 you could keep a single mad instruction for umad >> (sad maybe too?). (I'm actually wondering if the hw really can't do >> unfused float multiply+add as a single instr

Re: [Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI

2017-06-12 Thread Ilia Mirkin
On Mon, Jun 12, 2017 at 7:57 PM, Roland Scheidegger wrote: > FWIW surely on nv50 you could keep a single mad instruction for umad > (sad maybe too?). (I'm actually wondering if the hw really can't do > unfused float multiply+add as a single instruction but I know next to > nothing about nvidia hw.

Re: [Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI

2017-06-12 Thread Roland Scheidegger
Am 13.06.2017 um 01:57 schrieb Roland Scheidegger: > This looks like the right idea to me too. It may sound a bit weird to do > that per instruction, but d3d11 does that as well. (Some d3d versions > just have a global flag basically forbidding or allowing any such fast > math optimizations in the

Re: [Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI

2017-06-12 Thread Roland Scheidegger
This looks like the right idea to me too. It may sound a bit weird to do that per instruction, but d3d11 does that as well. (Some d3d versions just have a global flag basically forbidding or allowing any such fast math optimizations in the assembly, but I'm not actually sure everybody honors that w

Re: [Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI

2017-06-12 Thread Nicolai Hähnle
On 11.06.2017 20:42, Karol Herbst wrote: Running Tomb Raider on Nouveau I found some flicker caused by ignoring precise modifiers on variables inside Nouveau. > This series add precise/invariant handling to TGSI, which can be then used by drivers to disable certain unsafe optimisations which ma

[Mesa-dev] [RFC 0/9] Add precise/invariant semantics to TGSI

2017-06-11 Thread Karol Herbst
Running Tomb Raider on Nouveau I found some flicker caused by ignoring precise modifiers on variables inside Nouveau. This series add precise/invariant handling to TGSI, which can be then used by drivers to disable certain unsafe optimisations which may otherwise alter calculations, which depend o