diff options
author | Brian Paul <[email protected]> | 2008-10-29 16:26:10 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-10-29 16:26:10 -0600 |
commit | a5d920297a2affe34c535d30a2c49588f92f69ad (patch) | |
tree | accd22f4bbef28182f10c157c26f08cdd391a642 /src/gallium/auxiliary/tgsi/tgsi_ppc.c | |
parent | 8828d52348d81e1b9ec985200a430554873b5f4e (diff) |
gallium: use execmem for PPC code, grow instruction buffer as needed
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_ppc.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_ppc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ppc.c b/src/gallium/auxiliary/tgsi/tgsi_ppc.c index 5d130709221..a92b1902e3d 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ppc.c +++ b/src/gallium/auxiliary/tgsi/tgsi_ppc.c @@ -1315,6 +1315,14 @@ tgsi_emit_ppc(const struct tgsi_token *tokens, tgsi_parse_free( &parse ); + if (ppc_num_instructions(func) == 0) { + /* ran out of memory for instructions */ + ok = FALSE; + } + + if (!ok) + debug_printf("TGSI->PPC translation failed\n"); + return ok; } |