summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-10-17 07:45:08 -0700
committerJosé Fonseca <jfonseca@vmware.com>2010-10-17 07:45:08 -0700
commit709699d2e25146ac16af7e939de4398fdc50307e (patch)
tree9d4a3e11ba171f4c7bb59f3f1a8bfb1b8a46eb1a /src/gallium/drivers/llvmpipe
parent914b0d34e89ee53ef3d7d8aac4baa794492a2064 (diff)
llvmpipe: Ensure z_shift and z_width is initialized.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_depth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_depth.c b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
index 167ac0ed2e..7eb76d4fb3 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_depth.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_depth.c
@@ -469,7 +469,7 @@ lp_build_depth_stencil_test(LLVMBuilderRef builder,
struct lp_build_context z_bld;
struct lp_build_context s_bld;
struct lp_type s_type;
- unsigned z_shift, z_width, z_mask;
+ unsigned z_shift = 0, z_width = 0, z_mask = 0;
LLVMValueRef zs_dst, z_dst = NULL;
LLVMValueRef stencil_vals = NULL;
LLVMValueRef z_bitmask = NULL, stencil_shift = NULL;