r600g: don't change the order of writes in merge_inst_group
authorVadim Girlin <vadimgirlin@gmail.com>
Wed, 16 Nov 2011 23:33:57 +0000 (03:33 +0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Nov 2011 14:10:37 +0000 (09:10 -0500)
commit0cddea37b2d79e4353347621cd2849cde682084a
tree7deb1af968fe72dbce69f8df31c8f1f87010d163
parent4b1205d53b26dadba13578cf875feeeaa2018f74
r600g: don't change the order of writes in merge_inst_group

Merge may produce incorrect order of operations for r600-eg:

x: inst1 R0.x, ... ;  //from current group
...
t: inst0 R0.x, ... ;  //from previous group, same destination

Result of inst1 will be lost.

So compare destinations and don't allow this.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/r600_asm.c