aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2020-01-28 13:14:47 -0800
committerEric Anholt <[email protected]>2020-02-18 15:40:04 -0800
commit45b2ccc6b30c9e4c3382e6b462a2f5357c15d3b8 (patch)
tree6fee71cfbf59e4441db2b04f56fa6103cd89aed2 /src/gallium/auxiliary/gallivm
parent13a276ed3bad09033c00f0a08fcaad803c8a2173 (diff)
llvmpipe: Fix real uninitialized use of "atype" for SEMANTIC_FACE
Fixes: 502548a09c5a ("gallivm/llvmpipe: add support for front facing in sysval.") Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 913fcb2a914..38e92cb67d3 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -1548,6 +1548,7 @@ emit_fetch_system_value(
case TGSI_SEMANTIC_FACE:
res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.front_facing);
+ atype = TGSI_TYPE_UNSIGNED;
break;
case TGSI_SEMANTIC_DRAWID: