r300/compiler: Schedule KIL instructions before output writes
authorTom Stellard <tstellar@gmail.com>
Sun, 26 Feb 2012 20:12:36 +0000 (15:12 -0500)
committerTom Stellard <tstellar@gmail.com>
Sun, 26 Feb 2012 20:13:46 +0000 (15:13 -0500)
src/gallium/drivers/r300/compiler/radeon_pair_schedule.c

index d2302063e62da8aba3dc982be68ec028086ed870..df54b084de18e2038ba21a7455ebdf047d8faefd 100644 (file)
@@ -1104,6 +1104,10 @@ static void emit_instruction(
 #endif
 
        for (tex_ptr = s->ReadyTEX; tex_ptr; tex_ptr = tex_ptr->NextReady) {
+               if (tex_ptr->Instruction->U.I.Opcode == RC_OPCODE_KIL) {
+                       emit_all_tex(s, before);
+                       return;
+               }
                tex_count++;
        }
        update_max_score(s, &s->ReadyFullALU, &max_score, &max_inst, &max_list);