mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
r300/compiler: disable the rename_regs pass for loops
This workaround fixes rendering of kwin thumbnails.
NOTE: This is a candidate for the 7.9 and 7.10 branches.
(cherry picked from commit 8543902bfb)
This commit is contained in:
parent
ca8e49f303
commit
14950c50e1
1 changed files with 8 additions and 0 deletions
|
|
@ -51,6 +51,14 @@ void rc_rename_regs(struct radeon_compiler *c, void *user)
|
|||
struct rc_reader_data reader_data;
|
||||
unsigned char * used;
|
||||
|
||||
/* XXX Remove this once the register allocation works with flow control. */
|
||||
for(inst = c->Program.Instructions.Next;
|
||||
inst != &c->Program.Instructions;
|
||||
inst = inst->Next) {
|
||||
if (inst->U.I.Opcode == RC_OPCODE_BGNLOOP)
|
||||
return;
|
||||
}
|
||||
|
||||
used_length = 2 * rc_recompute_ips(c);
|
||||
used = memory_pool_malloc(&c->Pool, sizeof(unsigned char) * used_length);
|
||||
memset(used, 0, sizeof(unsigned char) * used_length);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue