[Mesa-dev] [PATCH 03/15] gallivm: Add userdata field to struct lp_build_tgsi_aos_context

Tom Stellard tstellar at gmail.com
Fri Dec 9 14:15:55 PST 2011


---
 src/gallium/auxiliary/gallivm/lp_bld_tgsi.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
index 9118a68..b235e90 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
@@ -248,6 +248,10 @@ struct lp_build_tgsi_aos_context
    struct tgsi_full_instruction *instructions;
    uint max_instructions;
 
+   /* Allow the user to store data in this structure rather than passing it
+    * to every function. */
+   void * userdata;
+
    LLVMValueRef (*emit_fetch_switch_file_fn)(struct lp_build_tgsi_aos_context *,
                                          const struct tgsi_full_src_register *);
 };
-- 
1.7.6.4



More information about the mesa-dev mailing list