summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2013-11-14 14:42:28 +0000
committerRoland Scheidegger <[email protected]>2013-11-14 14:44:15 +0000
commit5190c16a045691f4b8349f9d7ad39307006e5f3f (patch)
tree78d8d765288440d40c83f560d846a33ce8135fd6 /src/gallium/drivers
parenta29e40a42382630c2d9d95d3a1e03a7b3db87add (diff)
llvmpipe: (trivial) fix misplaced bld context assignment.
Should fix polygon offset crashes...
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_setup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c b/src/gallium/drivers/llvmpipe/lp_state_setup.c
index 97bfede19bf..a9d17536bbf 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c
@@ -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);
}