Browse Source

gallium: replace assertion with conditional/recovery code

The assertion failed when we ran out of exec memory.
Found with conform texcombine test.
tags/mesa_20090313
Brian 17 years ago
parent
commit
f7ee3c9792
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/gallium/auxiliary/rtasm/rtasm_x86sse.c

+ 5
- 1
src/gallium/auxiliary/rtasm/rtasm_x86sse.c 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) {

Loading…
Cancel
Save