r300/compiler: Don't try to convert RGB to Alpha in full instructions
authorTom Stellard <tstellar@gmail.com>
Wed, 6 Apr 2011 06:49:23 +0000 (23:49 -0700)
committerTom Stellard <tstellar@gmail.com>
Wed, 6 Apr 2011 07:31:53 +0000 (00:31 -0700)
Note: This is a candidate for the 7.10 branch.

src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c

index 8e10813..03a16bc 100644 (file)
@@ -600,7 +600,8 @@ static void is_rgb_to_alpha_possible(
        struct rc_reader_data * reader_data = userdata;
 
        if (!can_remap(inst->U.P.RGB.Opcode)
-           || !can_remap(inst->U.P.Alpha.Opcode)) {
+           || !can_remap(inst->U.P.Alpha.Opcode)
+           || inst->U.P.Alpha.Opcode != RC_OPCODE_NOP) {
                reader_data->Abort = 1;
                return;
        }