OSDN Git Service

Revert "r300/compiler: Don't try to convert RGB to Alpha in full instructions"
authorMarek Olšák <maraeo@gmail.com>
Thu, 14 Apr 2011 16:48:34 +0000 (18:48 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 15 Apr 2011 03:08:00 +0000 (05:08 +0200)
This reverts commit cd2857fae16e1352f39b37f611797e66619d3fe5.

It breaks Unigine Heaven.

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

index 03a16bc..8e10813 100644 (file)
@@ -600,8 +600,7 @@ 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)
-           || inst->U.P.Alpha.Opcode != RC_OPCODE_NOP) {
+           || !can_remap(inst->U.P.Alpha.Opcode)) {
                reader_data->Abort = 1;
                return;
        }