summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_jit.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-08-23 07:38:41 +0100
committerJosé Fonseca <[email protected]>2009-08-29 09:21:41 +0100
commit635c37e118bbf51fc8c93a2c999281ee817a93e1 (patch)
treecc0420dd94e281eaf3c8a4dd11360748a89747fb /src/gallium/drivers/llvmpipe/lp_jit.h
parentc022e15d1e56ba3a9c6b74eef6556d6063e2e322 (diff)
llvmpipe: Pass the alpha ref value and blend color in the jit context.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_jit.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_jit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_jit.h b/src/gallium/drivers/llvmpipe/lp_jit.h
index fe36b609212..e7e887fb64f 100644
--- a/src/gallium/drivers/llvmpipe/lp_jit.h
+++ b/src/gallium/drivers/llvmpipe/lp_jit.h
@@ -61,7 +61,10 @@ struct lp_jit_context
struct tgsi_sampler **samplers;
/* TODO: alpha reference value */
+ float alpha_ref_value;
+
/* TODO: blend constant color */
+ uint8_t *blend_color;
};
@@ -71,6 +74,12 @@ struct lp_jit_context
#define lp_jit_context_samplers(_builder, _ptr) \
lp_build_struct_get(_builder, _ptr, 1, "context.samplers")
+#define lp_jit_context_alpha_ref_value(_builder, _ptr) \
+ lp_build_struct_get(_builder, _ptr, 2, "context.alpha")
+
+#define lp_jit_context_blend_color(_builder, _ptr) \
+ lp_build_struct_get(_builder, _ptr, 3, "context.blend")
+
typedef void
(*lp_jit_frag_func)(struct lp_jit_context *context,