diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-09-21 19:57:57 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-09-21 20:12:03 +0100 |
commit | 734a498ed47b35c9e8e7172d19465aca640fa323 (patch) | |
tree | 73f9dc11e179e2bb4a9308b483323786c3fa0fd4 /src/mesa/state_tracker/st_mesa_to_tgsi.c | |
parent | 9297e6968ae16564f3d6a6e78b42da72f9c88e91 (diff) |
mesa: Ensure TGSI tokens are freed with gallium's free.
To avoid breaking the gallium's builtin malloc debugging.
Diffstat (limited to 'src/mesa/state_tracker/st_mesa_to_tgsi.c')
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 04be57f8ff..b0a1b529f1 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -869,3 +869,14 @@ out: return tokens; } + + +/** + * Tokens cannot be free with _mesa_free otherwise the builtin gallium + * malloc debugging will get confused. + */ +void +st_free_tokens(const struct tgsi_token *tokens) +{ + FREE((void *)tokens); +} |