projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13a276e
)
llvmpipe: Fix real uninitialized use of "atype" for SEMANTIC_FACE
author
Eric Anholt
<eric@anholt.net>
Tue, 28 Jan 2020 21:14:47 +0000
(13:14 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 18 Feb 2020 23:40:04 +0000
(15:40 -0800)
Fixes: 502548a09c5a ("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>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 913fcb2a914b12a1512026a42c060ad52ace9657..38e92cb67d3cda800229640f2a2b54e2ffa28afb 100644
(file)
--- 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: