Re: [Mesa-dev] [PATCH] gallium: fixed modulo zero crashes in tgsi interpreter (v2)

2017-06-10 Thread Roland Scheidegger
Pushed, thanks! Roland Am 09.06.2017 um 15:39 schrieb Marius Gräfe: > softpipe throws integer division by zero exceptions on windows > when using % with integers in a geometry shader. > > v2: Made error results consistent with existing div/mod zero handling in > tgsi. 64 bit signed integer d

[Mesa-dev] [PATCH] gallium: fixed modulo zero crashes in tgsi interpreter (v2)

2017-06-09 Thread Marius Gräfe
softpipe throws integer division by zero exceptions on windows when using % with integers in a geometry shader. v2: Made error results consistent with existing div/mod zero handling in tgsi. 64 bit signed integer division by zero returns zero like in micro_idiv, unsigned returns ~0u like i