mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 10:30:39 +01:00
r300: Clear fragment program instruction slots on first use
Make sure that instruction slots are fully initialized with NOPs during find_and_prepare_slot(). This fixes a bug when a fragment program was translated more than once (e.g. due to a second call to glProgramStringARB). This partially fixes glean/fragProg1.
This commit is contained in:
parent
826815a5d2
commit
b3acba87d7
1 changed files with 2 additions and 0 deletions
|
|
@ -1143,7 +1143,9 @@ static int find_and_prepare_slot(struct r300_fragment_program* rp,
|
|||
}
|
||||
|
||||
rp->alu.inst[pos].inst0 = NOP_INST0;
|
||||
rp->alu.inst[pos].inst1 = NOP_INST1;
|
||||
rp->alu.inst[pos].inst2 = NOP_INST2;
|
||||
rp->alu.inst[pos].inst3 = NOP_INST3;
|
||||
|
||||
cs->nrslots++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue