Module: Mesa Branch: master Commit: 34e5b46fff2124d13b0d39269cdb88176a737340 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=34e5b46fff2124d13b0d39269cdb88176a737340
Author: Michel Zou <[email protected]> Date: Wed Nov 25 12:18:37 2020 +0100 softpipe: fix maybe-uninitialized warning Reviewed-by: Jose Fonseca <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7713> --- src/gallium/drivers/softpipe/sp_quad_blend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/softpipe/sp_quad_blend.c b/src/gallium/drivers/softpipe/sp_quad_blend.c index 975a760118f..6fecb71c9e9 100644 --- a/src/gallium/drivers/softpipe/sp_quad_blend.c +++ b/src/gallium/drivers/softpipe/sp_quad_blend.c @@ -170,6 +170,8 @@ logicop_quad(struct quad_stage *qs, src[j][1] = float_to_ubyte(quadColor[j][1]); /* P1 */ src[j][2] = float_to_ubyte(quadColor[j][2]); /* P2 */ src[j][3] = float_to_ubyte(quadColor[j][3]); /* P3 */ + + res[j][0] = 0; } switch (softpipe->blend->logicop_func) { _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
