From: Tom Stellard Date: Sun, 26 Feb 2012 20:12:36 +0000 (-0500) Subject: r300/compiler: Schedule KIL instructions before output writes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7acbbc07048d85ee16b15b48a00e232cd26e2322;p=mesa.git r300/compiler: Schedule KIL instructions before output writes --- diff --git a/src/gallium/drivers/r300/compiler/radeon_pair_schedule.c b/src/gallium/drivers/r300/compiler/radeon_pair_schedule.c index d2302063e62..df54b084de1 100644 --- a/src/gallium/drivers/r300/compiler/radeon_pair_schedule.c +++ b/src/gallium/drivers/r300/compiler/radeon_pair_schedule.c @@ -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);