llvmpipe: (trivial) fix misplaced bld context assignment.
authorRoland Scheidegger <sroland@vmware.com>
Thu, 14 Nov 2013 14:42:28 +0000 (14:42 +0000)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 14 Nov 2013 14:44:15 +0000 (14:44 +0000)
Should fix polygon offset crashes...

src/gallium/drivers/llvmpipe/lp_state_setup.c

index 97bfede..a9d1753 100644 (file)
@@ -627,6 +627,7 @@ init_args(struct gallivm_state *gallivm,
    struct lp_build_context bld;
 
    lp_build_context_init(&bld, gallivm, typef4);
+   args->bld = bld;
 
    /* The internal position input is in slot zero:
     */
@@ -676,8 +677,6 @@ init_args(struct gallivm_state *gallivm,
    args->x0_center = lp_build_extract_broadcast(gallivm, typef4, typef4, xy0_center, zeroi);
    args->y0_center = lp_build_extract_broadcast(gallivm, typef4, typef4, xy0_center, onei);
 
-   args->bld = bld;
-
    emit_linear_coef(gallivm, args, 0, attr_pos);
 }