swr: fix uninitialized variable warnings

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11170>
This commit is contained in:
Michel Zou 2021-06-03 20:20:44 +02:00 committed by Marge Bot
parent 10a3e388a4
commit b5bcc49087
1 changed files with 2 additions and 2 deletions

View File

@ -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: