summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_jit.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-09-23 19:16:33 -0600
committerBrian Paul <brianp@vmware.com>2010-09-24 09:48:32 -0600
commitd1a4dd4217a4b8b018d4d9a161afece640d75694 (patch)
treea4ce8e0e63a5a16a14d0147a00123a7f67824041 /src/gallium/drivers/llvmpipe/lp_jit.c
parent61b7da074e2faebf03d3dfc30e910ee1367bcd5a (diff)
llvmpipe: make texture border_color dynamic state
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_jit.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_jit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_jit.c b/src/gallium/drivers/llvmpipe/lp_jit.c
index 4c7089892e..04b12dedcc 100644
--- a/src/gallium/drivers/llvmpipe/lp_jit.c
+++ b/src/gallium/drivers/llvmpipe/lp_jit.c
@@ -64,11 +64,11 @@ lp_jit_init_globals(struct llvmpipe_screen *screen)
elem_types[LP_JIT_TEXTURE_DATA] =
LLVMArrayType(LLVMPointerType(LLVMInt8Type(), 0),
LP_MAX_TEXTURE_LEVELS);
-
elem_types[LP_JIT_TEXTURE_MIN_LOD] = LLVMFloatType();
elem_types[LP_JIT_TEXTURE_MAX_LOD] = LLVMFloatType();
elem_types[LP_JIT_TEXTURE_LOD_BIAS] = LLVMFloatType();
-
+ elem_types[LP_JIT_TEXTURE_BORDER_COLOR] =
+ LLVMArrayType(LLVMFloatType(), 4);
texture_type = LLVMStructType(elem_types, Elements(elem_types), 0);
@@ -102,6 +102,9 @@ lp_jit_init_globals(struct llvmpipe_screen *screen)
LP_CHECK_MEMBER_OFFSET(struct lp_jit_texture, lod_bias,
screen->target, texture_type,
LP_JIT_TEXTURE_LOD_BIAS);
+ LP_CHECK_MEMBER_OFFSET(struct lp_jit_texture, border_color,
+ screen->target, texture_type,
+ LP_JIT_TEXTURE_BORDER_COLOR);
LP_CHECK_STRUCT_SIZE(struct lp_jit_texture,
screen->target, texture_type);