[Mesa-dev] [PATCH] st/mesa: change SQRT lowering to fix the game Risen

Marek Olšák maraeo at gmail.com
Sun Jun 5 19:39:55 UTC 2016


On Sun, Jun 5, 2016 at 6:34 PM, Axel Davy <axel.davy at ens.fr> wrote:
> if abs is not inserted in the source glsl, that's a wine bug, not a mesa
> bug,
> Thus I don't think doing this is a good idea.

The old code used CMP, this code uses ABS instead. ABS is faster. I
don't see a problem with that considering the behavior is "undefined" in GLSL.

Marek


More information about the mesa-dev mailing list