r300/compiler: Copy all instruction attributes during local transfoms
authorTom Stellard <thomas.stellard@amd.com>
Sat, 14 Apr 2012 14:02:19 +0000 (10:02 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 14 Apr 2012 14:02:19 +0000 (10:02 -0400)
commit73249239cf71e3595ee19f3c1a02b8b0f58994cd
treef7a40314a5885dd5fc461a5ca49f5805c07d89d4
parentb2df031a959f36743527b9abc89913ce4f895de3
r300/compiler: Copy all instruction attributes during local transfoms

Instruction attributes like WriteALUResult and ALUResultCompare
were being discarded during the some of the local transformations.

This fixes the following piglit tests:

glsl1-inequality (vec2, pass)
loopfunc
fs-any-bvec2-using-if
fs-op-ne-bvec2-bvec2-using-if
fs-op-ne-ivec2-ivec2-using-if
fs-op-ne-mat2-mat2-using-if
fs-op-ne-vec2-vec2-using-if
fs-op-ne-mat2x3-mat2x3-using-if
fs-op-ne-mat2x4-mat2x4-using-if

https://bugs.freedesktop.org/show_bug.cgi?id=45921

NOTE: This is a candidate for the stable branches.
src/gallium/drivers/r300/compiler/radeon_program_alu.c