From: Eric Anholt Date: Tue, 28 Jan 2020 21:14:47 +0000 (-0800) Subject: llvmpipe: Fix real uninitialized use of "atype" for SEMANTIC_FACE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45b2ccc6b30c9e4c3382e6b462a2f5357c15d3b8;p=mesa.git 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 Part-of: --- 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: