mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 04:30:25 +01:00
r300/compiler: Don't use rc_error() unless the error is unrecoverable
https://bugs.freedesktop.org/show_bug.cgi?id=30416
(cherry picked from commit 1b76dde0cd)
This commit is contained in:
parent
fcf5819945
commit
e1918fd5d5
1 changed files with 3 additions and 3 deletions
|
|
@ -386,8 +386,6 @@ static int build_loop_info(struct radeon_compiler * c, struct loop_info * loop,
|
|||
case RC_OPCODE_SNE:
|
||||
break;
|
||||
default:
|
||||
rc_error(c, "%s: expected conditional",
|
||||
__FUNCTION__);
|
||||
return 0;
|
||||
}
|
||||
loop->Cond = loop->If->Prev;
|
||||
|
|
@ -431,8 +429,10 @@ static int transform_loop(struct emulate_loop_state * s,
|
|||
|
||||
loop = &s->Loops[s->LoopCount++];
|
||||
|
||||
if (!build_loop_info(s->C, loop, inst))
|
||||
if (!build_loop_info(s->C, loop, inst)) {
|
||||
rc_error(s->C, "Failed to build loop info\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(try_unroll_loop(s->C, loop)){
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue