diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-24 02:30:08 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-24 02:30:08 +0000 |
commit | 1d35364040c0ffa99133522fa5ab3bd6131d8bf7 (patch) | |
tree | 0ea3d9ca4ad10692c6477168b67e98cb50ea6bd3 /lib/mesa/src/gallium/auxiliary/tessellator | |
parent | b24b5b9049e889ee4eb39b565bcc8d48bd45ab48 (diff) |
Merge Mesa 21.3.7
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/tessellator')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/tessellator/tessellator.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/tessellator/tessellator.cpp b/lib/mesa/src/gallium/auxiliary/tessellator/tessellator.cpp index c2dc40f57..952928b06 100644 --- a/lib/mesa/src/gallium/auxiliary/tessellator/tessellator.cpp +++ b/lib/mesa/src/gallium/auxiliary/tessellator/tessellator.cpp @@ -18,6 +18,7 @@ */ #include "tessellator.hpp" +#include "util/macros.h" #if defined(_MSC_VER) #include <math.h> // ceil #else @@ -2228,6 +2229,8 @@ void CHLSLTessellator::QuadHLSLProcessTessFactors( float tessFactor_Ueq0, float case PIPE_TESSELLATOR_REDUCTION_AVERAGE: insideTessFactor[U] = (tessFactor_Veq0 + tessFactor_Veq1 + tessFactor_Ueq0 + tessFactor_Ueq1) / 4; break; + default: + unreachable("impossible m_insideTessFactorReduction"); } // Scale inside tessFactor based on user scale factor. @@ -2293,6 +2296,8 @@ void CHLSLTessellator::QuadHLSLProcessTessFactors( float tessFactor_Ueq0, float insideTessFactor[U] = (tessFactor_Veq0 + tessFactor_Veq1) / 2; insideTessFactor[V] = (tessFactor_Ueq0 + tessFactor_Ueq1) / 2; break; + default: + unreachable("impossible m_insideTessFactorReduction"); } // Scale inside tessFactors based on user scale factor. @@ -2464,6 +2469,8 @@ void CHLSLTessellator::TriHLSLProcessTessFactors( float tessFactor_Ueq0, float t case PIPE_TESSELLATOR_REDUCTION_AVERAGE: insideTessFactor = (tessFactor_Ueq0 + tessFactor_Veq0 + tessFactor_Weq0) / 3; break; + default: + unreachable("impossible m_insideTessFactorReduction"); } // Scale inside TessFactor based on user scale factor. |