summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 01:57:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 01:57:18 +0000
commitb24b5b9049e889ee4eb39b565bcc8d48bd45ab48 (patch)
tree658ca4e6b41655f49463c85edbaeda48979c394c /lib/mesa/src/gallium/drivers/swr
parent57768bbb154c2879d34ec20e401b19472e77aaf7 (diff)
Import Mesa 21.3.7
Diffstat (limited to 'lib/mesa/src/gallium/drivers/swr')
-rw-r--r--lib/mesa/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp b/lib/mesa/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp
index d9f4ddb3f..08f2bce33 100644
--- a/lib/mesa/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp
+++ b/lib/mesa/src/gallium/drivers/swr/rasterizer/core/tessellator.cpp
@@ -2259,7 +2259,7 @@ void CHLSLTessellator::QuadHLSLProcessTessFactors( float tessFactor_Ueq0, float
}
// Compute inside TessFactors
- float insideTessFactor[QUAD_AXES];
+ float insideTessFactor[QUAD_AXES] = {0.0};
if( m_quadInsideTessFactorReductionAxis == D3D11_TESSELLATOR_QUAD_REDUCTION_1_AXIS )
{
switch( m_insideTessFactorReduction )
@@ -2497,7 +2497,7 @@ void CHLSLTessellator::TriHLSLProcessTessFactors( float tessFactor_Ueq0, float t
}
// Compute inside TessFactor
- float insideTessFactor;
+ float insideTessFactor = 0.0;
switch( m_insideTessFactorReduction )
{
case D3D11_TESSELLATOR_REDUCTION_MIN: