mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 22:30:40 +02:00
r300/compiler: fix assertion failure in the r500-fragprog emission path
This commit is contained in:
parent
44cfc4ad74
commit
7b38f946a0
1 changed files with 2 additions and 3 deletions
|
|
@ -469,9 +469,8 @@ void r500BuildFragmentProgramHwCode(struct r300_fragment_program_compiler *compi
|
|||
if (compiler->Base.Error)
|
||||
return;
|
||||
|
||||
assert(code->inst_end >= 0);
|
||||
|
||||
if ((code->inst[code->inst_end].inst0 & R500_INST_TYPE_MASK) != R500_INST_TYPE_OUT) {
|
||||
if (code->inst_end == -1 ||
|
||||
(code->inst[code->inst_end].inst0 & R500_INST_TYPE_MASK) != R500_INST_TYPE_OUT) {
|
||||
/* This may happen when dead-code elimination is disabled or
|
||||
* when most of the fragment program logic is leading to a KIL */
|
||||
if (code->inst_end >= 511) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue