aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2017-01-06 00:46:15 +0100
committerRoland Scheidegger <[email protected]>2017-01-06 00:46:15 +0100
commitcaf18a8434bd3a51fcfe557a441e60fae78e7924 (patch)
tree788b4a025422e770df884b990573283dcd4a9901 /src/gallium/auxiliary
parent4634cb5921b985f04f2daf00cda2d28036143bd3 (diff)
gallivm: (trivial) fix typo bug with small AoS format unpacking
Fix typo using wrong (uninitialized) build context introduced by 4634cb5921b985f04f2daf00cda2d28036143bd3. (This only affects very rare small packed formats which have a PIPE_SWIZZLE_0 channel, such as r4a4, which is never used by mesa/st. Nevertheless it broke lp_test_format.)
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_format_aos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
index 11d1118a30c..2f723857f4b 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c
@@ -542,7 +542,7 @@ lp_build_fetch_rgba_aos(struct gallivm_state *gallivm,
conv_type = lp_type_int_vec(type.width*4, type.width * type.length);
dst_vec_type = lp_build_vec_type(gallivm, type);
conv_vec_type = lp_build_vec_type(gallivm, conv_type);
- lp_build_context_init(&bld, gallivm, conv_type);
+ lp_build_context_init(&bld_conv, gallivm, conv_type);
packed = lp_build_gather(gallivm, type.length/4,
format_desc->block.bits, fetch_type,