From edbc302ad678e1a4a8803ba0e827a13dd27105d2 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 11 May 2010 21:27:05 +0100 Subject: mesa/st+tgsi: Provide a free callback to match with ureg_get_tokens(). This fixes crashes with the memory debugging routines on Windows. NOTE: This is a candidate for the 7.8 stable branch --- src/gallium/auxiliary/tgsi/tgsi_ureg.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/auxiliary/tgsi/tgsi_ureg.h') diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h index f32420dd87..055545f3d2 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h @@ -104,6 +104,10 @@ ureg_get_tokens( struct ureg_program *ureg, unsigned *nr_tokens ); +/* Free the tokens created by ureg_get_tokens() */ +void ureg_free_tokens( const struct tgsi_token *tokens ); + + void ureg_destroy( struct ureg_program * ); -- cgit v1.2.3