gallium: replace assertion with conditional/recovery code

The assertion failed when we ran out of exec memory.
Found with conform texcombine test.
This commit is contained in:
Brian 2008-10-06 18:31:56 -06:00
parent d055b2c001
commit f7ee3c9792

View file

@ -370,7 +370,11 @@ void x86_jcc( struct x86_function *p,
DUMP_I(cc);
if (offset < 0) {
assert(p->csr - p->store > -offset);
/*assert(p->csr - p->store > -offset);*/
if (p->csr - p->store <= -offset) {
/* probably out of memory (using the error_overflow buffer) */
return;
}
}
if (offset <= 127 && offset >= -128) {