[Mesa-dev] [PATCH] ir_to_mesa: fix copy propagation

Ian Romanick idr at freedesktop.org
Thu Jan 27 14:20:58 PST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/26/2011 04:30 AM, Christoph Bumiller wrote:
> The current copy propagation code would propagate TEMP[0].x from (6)
> into TEMP[1].x from (8) in the following, which is clearly wrong:
> 
>   6:   MOV TEMP[1].x, TEMP[0].xxxx
>   7:   MOV TEMP[0].x, TEMP[0].yyyy
>   8:   MOV TEMP[0].y, TEMP[1].xxxx
>   9:   ADD TEMP[1].x, TEMP[0].zzzz, IMM[0].yyyy
>  10:   MOV TEMP[0].z, TEMP[1].xxxx
> 
> Possible patch and a small program to check this attached.
> Tested with llvmpipe.

Does this fix https://bugs.freedesktop.org/show_bug.cgi?id=33197?  This
is reproducible with piglit test case glsl-vs-post-increment-01.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk1B78oACgkQX1gOwKyEAw9OUwCeJ6l2LxQPnLx9EEiRxjEtb4qA
FnQAoIrLahPEit1M1a5Rz+xJb/1aPOrk
=OMBF
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list