From 45b2ccc6b30c9e4c3382e6b462a2f5357c15d3b8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 28 Jan 2020 13:14:47 -0800 Subject: [PATCH] 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: --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.30.2