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>
This commit is contained in:
@@ -2978,7 +2978,7 @@ glsl_to_tgsi_visitor::simplify_cmp(void)
|
|||||||
if (!tempWrites) {
|
if (!tempWrites) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
memset(tempWrites, 0, sizeof(tempWrites));
|
memset(tempWrites, 0, sizeof(unsigned) * MAX_TEMPS);
|
||||||
memset(outputWrites, 0, sizeof(outputWrites));
|
memset(outputWrites, 0, sizeof(outputWrites));
|
||||||
|
|
||||||
foreach_iter(exec_list_iterator, iter, this->instructions) {
|
foreach_iter(exec_list_iterator, iter, this->instructions) {
|
||||||
|
Reference in New Issue
Block a user