[Mesa-dev] [PATCH 07/15] gallivm: Add userdata field to struct lp_build_tgsi_soa_context
Tom Stellard
tstellar at gmail.com
Fri Dec 9 14:15:59 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 cabf907..be017c9 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
@@ -304,6 +304,10 @@ struct lp_build_tgsi_soa_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_soa_context *,
const struct tgsi_full_src_register *,
const unsigned);
--
1.7.6.4
More information about the mesa-dev
mailing list