summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-09-14 00:17:13 -0700
committerVinson Lee <vlee@vmware.com>2010-09-14 00:17:13 -0700
commitaeb83928fdc09d9310df0f94aaddf87d9635dc7e (patch)
tree4f2eed91f2bcb43275586ab09e88aeb04be05c9e /src/gallium/drivers/llvmpipe
parent45ee8463a2a771c68b8146c87fa582a004dfde5e (diff)
llvmpipe: Initialize variable for potentially unhandled switch case.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 6053e825e1..8101e2d843 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -212,6 +212,9 @@ generate_quad_mask(LLVMBuilderRef builder,
case 3:
shift = 10;
break;
+ default:
+ assert(0);
+ shift = 0;
}
mask_input = LLVMBuildLShr(builder,