From 635c37e118bbf51fc8c93a2c999281ee817a93e1 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sun, 23 Aug 2009 07:38:41 +0100 Subject: llvmpipe: Pass the alpha ref value and blend color in the jit context. --- src/gallium/drivers/llvmpipe/lp_jit.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/llvmpipe/lp_jit.c') diff --git a/src/gallium/drivers/llvmpipe/lp_jit.c b/src/gallium/drivers/llvmpipe/lp_jit.c index 92d5d43d0cc..0a32c41a6fa 100644 --- a/src/gallium/drivers/llvmpipe/lp_jit.c +++ b/src/gallium/drivers/llvmpipe/lp_jit.c @@ -45,11 +45,13 @@ lp_jit_init_types(struct llvmpipe_screen *screen) { /* struct lp_jit_context */ { - LLVMTypeRef elem_types[2]; + LLVMTypeRef elem_types[4]; LLVMTypeRef context_type; elem_types[0] = LLVMPointerType(LLVMFloatType(), 0); /* constants */ elem_types[1] = LLVMPointerType(LLVMInt8Type(), 0); /* samplers */ + elem_types[2] = LLVMFloatType(); /* alpha_ref_value */ + elem_types[3] = LLVMPointerType(LLVMInt8Type(), 0); /* blend_color */ context_type = LLVMStructType(elem_types, Elements(elem_types), 0); @@ -57,6 +59,10 @@ lp_jit_init_types(struct llvmpipe_screen *screen) screen->target, context_type, 0); LP_CHECK_MEMBER_OFFSET(struct lp_jit_context, samplers, screen->target, context_type, 1); + LP_CHECK_MEMBER_OFFSET(struct lp_jit_context, alpha_ref_value, + screen->target, context_type, 2); + LP_CHECK_MEMBER_OFFSET(struct lp_jit_context, blend_color, + screen->target, context_type, 3); LP_CHECK_STRUCT_SIZE(struct lp_jit_context, screen->target, context_type); -- cgit v1.2.3