diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-29 16:26:10 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-29 16:26:10 -0600 |
commit | a5d920297a2affe34c535d30a2c49588f92f69ad (patch) | |
tree | accd22f4bbef28182f10c157c26f08cdd391a642 /src/gallium/auxiliary/tgsi | |
parent | 8828d52348d81e1b9ec985200a430554873b5f4e (diff) |
gallium: use execmem for PPC code, grow instruction buffer as needed
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-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 5d13070922..a92b1902e3 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; } |