llvmpipe: Fix real uninitialized use of "atype" for SEMANTIC_FACE

Fixes: 502548a09c ("gallivm/llvmpipe: add support for front facing in sysval.")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
This commit is contained in:
Eric Anholt 2020-01-28 13:14:47 -08:00
parent 13a276ed3b
commit 45b2ccc6b3

View file

@ -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: