summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Zou <xantares09@hotmail.com>2020-11-25 12:18:37 +0100
committerMarge Bot <eric+marge@anholt.net>2020-12-01 16:51:01 +0000
commit34e5b46fff2124d13b0d39269cdb88176a737340 (patch)
tree360a7dd182232bb3d3e5bfd73e84a60d407d8da4
parent5a702fa4e5c4aff130088365763513135cd0188b (diff)
softpipe: fix maybe-uninitialized warning
Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7713>
-rw-r--r--src/gallium/drivers/softpipe/sp_quad_blend.c2
1 files changed, 2 insertions, 0 deletions
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) {