NV30/NV40 CMP and SCS src == dst handling
authorLuca Barbieri <luca@luca-barbieri.com>
Sat, 26 Dec 2009 07:12:15 +0000 (08:12 +0100)
committerYounes Manton <younes.m@gmail.com>
Mon, 28 Dec 2009 22:59:00 +0000 (17:59 -0500)
commita55e50b082ca068d35d695ff323603507e2b64aa
tree6eab5bf9a219443e6e4fc1f92d897b5f9f4a66ec
parent926562fe271a031774d1aae850e955c2180f2816
NV30/NV40 CMP and SCS src == dst handling

CMP and SCS can produce incorrect results if the source and
destination are the same.
This patch should fix the issues.
CMP is fixed by predicating both moves.
SCS by changing the order if the source component is X.
src/gallium/drivers/nv30/nv30_fragprog.c
src/gallium/drivers/nv40/nv40_fragprog.c