[Mesa-dev] r600g/sb: fix a bug in constants folding optimisation pass

Glenn Kennard glenn.kennard at gmail.com
Fri Jan 30 17:35:32 PST 2015


On Sat, 31 Jan 2015 01:36:30 +0100, Xavier B. <xavierb at gmail.com> wrote:

> r600g/sb: fix a bug in constants folding optimisation
>  pass:
>
>     ADD     R6.y.1,    R5.w.1, ~1|3f800000
>     ADD     R6.y.2,    |R6.y.1|, -0.0001|b8d1b717
>
> was wrongly being converted to
>
>     ADD     R6.y.1,    R5.w.1, ~1|3f800000
>     ADD     R6.y.2,    R5.w.1, -1.0001|bf800347
>
> because abs() modifier was ignored.
>
> Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>


Reviewed-by: Glenn Kennard <glenn.kennard at gmail.com>

Thanks Xavier! For future patches, please use git send-email as noted in  
http://www.mesa3d.org/devinfo.html so reviewers can comment inline.


More information about the mesa-dev mailing list