1 Jun 2010 07:41
[PATCH] r300/compiler: Prevent the fragmentation of TEX blocks in the pair scheduler.
<tstellar <at> gmail.com>
2010-06-01 05:41:50 GMT
2010-06-01 05:41:50 GMT
From: Tom Stellard <tstellar <at> gmail.com> This fixes bug: https://bugs.freedesktop.org/show_bug.cgi?id=25109 --- .../dri/r300/compiler/radeon_pair_schedule.c | 39 +++++++++++++------- 1 files changed, 25 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c b/src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c index a279549..0641be5 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c +++ b/src/mesa/drivers/dri/r300/compiler/radeon_pair_schedule.c <at> <at> -208,21 +208,32 <at> <at> static void emit_all_tex(struct schedule_state * s, struct rc_instruction * befo assert(s->ReadyTEX); - /* Don't let the ready list change under us! */ - readytex = s->ReadyTEX; - s->ReadyTEX = 0; - - /* Node marker for R300 */ - struct rc_instruction * inst_begin = rc_insert_new_instruction(s->C, before->Prev); - inst_begin->U.I.Opcode = RC_OPCODE_BEGIN_TEX; - - /* Link texture instructions back in */ - while(readytex) { - struct schedule_instruction * tex = readytex; - readytex = readytex->NextReady; + if(s->ReadyTEX){(Continue reading)
RSS Feed