From e6ee85ec619ded82de89364b73251b6092dd23e1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 30 Oct 2014 19:08:59 -0600 Subject: tgsi: add a tgsi_free_tokens() function To match tgsi_alloc_tokens(). Reviewed-by: Charmaine Lee --- src/gallium/auxiliary/tgsi/tgsi_parse.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gallium/auxiliary/tgsi/tgsi_parse.c') diff --git a/src/gallium/auxiliary/tgsi/tgsi_parse.c b/src/gallium/auxiliary/tgsi/tgsi_parse.c index 5bf8f483970..f2370ed7a06 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_parse.c +++ b/src/gallium/auxiliary/tgsi/tgsi_parse.c @@ -291,6 +291,16 @@ tgsi_alloc_tokens(unsigned num_tokens) } +/** + * Free tokens allocated by tgsi_alloc_tokens() or tgsi_dup_tokens() + */ +void +tgsi_free_tokens(const struct tgsi_token *tokens) +{ + FREE((void *) tokens); +} + + void tgsi_dump_tokens(const struct tgsi_token *tokens) { -- cgit v1.2.3