mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 13:00:37 +01:00
state_stracker: Fix access to uninitialized memory.
Fix an access to uninitialized memory pointed out by valgrind in
glsl_to_tgsi_visitor::simplify_cmp(void).
Note: This is a candidate for the 8.0 branch.
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
(cherry picked from commit 1d01429c6a)
This commit is contained in:
parent
99f9c9789a
commit
6e09d3cff2
1 changed files with 1 additions and 1 deletions
|
|
@ -2978,7 +2978,7 @@ glsl_to_tgsi_visitor::simplify_cmp(void)
|
|||
if (!tempWrites) {
|
||||
return;
|
||||
}
|
||||
memset(tempWrites, 0, sizeof(tempWrites));
|
||||
memset(tempWrites, 0, sizeof(unsigned) * MAX_TEMPS);
|
||||
memset(outputWrites, 0, sizeof(outputWrites));
|
||||
|
||||
foreach_iter(exec_list_iterator, iter, this->instructions) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue