diff options
author | José Fonseca <[email protected]> | 2009-08-23 07:38:41 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:41 +0100 |
commit | 635c37e118bbf51fc8c93a2c999281ee817a93e1 (patch) | |
tree | cc0420dd94e281eaf3c8a4dd11360748a89747fb /src/gallium/drivers/llvmpipe/lp_jit.c | |
parent | c022e15d1e56ba3a9c6b74eef6556d6063e2e322 (diff) |
llvmpipe: Pass the alpha ref value and blend color in the jit context.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_jit.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_jit.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); |