summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_state_setup.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-10-17 18:29:28 -0700
committerKeith Whitwell <keithw@vmware.com>2010-10-17 18:29:28 -0700
commit543fb77ddece7e1806e8eaa0d65bb2a945ef9a75 (patch)
treed4f5b0efd00781686c0a2200fd24bea1ab2ef014 /src/gallium/drivers/llvmpipe/lp_state_setup.c
parent75d22e71a812bbe78414d3f9519f4c7a7157c748 (diff)
llvmpipe: remove setup fallback path
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_setup.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_setup.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c b/src/gallium/drivers/llvmpipe/lp_state_setup.c
index 3261c53f51..ee4991bf8d 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c
@@ -704,17 +704,8 @@ llvmpipe_update_setup(struct llvmpipe_context *lp)
}
variant = generate_setup_variant(screen, key);
- if (variant) {
- insert_at_head(&lp->setup_variants_list, &variant->list_item_global);
- lp->nr_setup_variants++;
- }
- else {
- /* Keep the old path around for debugging, and also perhaps
- * in case malloc fails during compilation.
- */
- variant = &lp->setup_variant;
- variant->jit_function = lp_setup_tri_fallback;
- }
+ insert_at_head(&lp->setup_variants_list, &variant->list_item_global);
+ lp->nr_setup_variants++;
}
lp_setup_set_setup_variant(lp->setup,