From 0b9e4e1f3df3e503e3af7d8cd42777708e1b69cf Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 8 Dec 2019 16:29:14 +0100 Subject: [PATCH] Oops, shifting using a SSE register apparently requires AVX2 --- src/rendering/polyrenderer/drawers/poly_triangle.h | 2 -- src/rendering/polyrenderer/drawers/screen_triangle.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rendering/polyrenderer/drawers/poly_triangle.h b/src/rendering/polyrenderer/drawers/poly_triangle.h index e70e7f40d..dd281b680 100644 --- a/src/rendering/polyrenderer/drawers/poly_triangle.h +++ b/src/rendering/polyrenderer/drawers/poly_triangle.h @@ -199,8 +199,6 @@ public: struct Scanline { float W[MAXWIDTH]; - float WeightV1[MAXWIDTH]; - float WeightV2[MAXWIDTH]; uint16_t U[MAXWIDTH]; uint16_t V[MAXWIDTH]; float WorldX[MAXWIDTH]; diff --git a/src/rendering/polyrenderer/drawers/screen_triangle.cpp b/src/rendering/polyrenderer/drawers/screen_triangle.cpp index 590a28fa9..2e99e3967 100644 --- a/src/rendering/polyrenderer/drawers/screen_triangle.cpp +++ b/src/rendering/polyrenderer/drawers/screen_triangle.cpp @@ -435,7 +435,7 @@ static const int shiftTable[] = { 24, 16, 8, 0 // STYLEALPHA_InvDstCol }; -#ifdef NO_SSE +#if 1 //#ifndef USE_AVX2 template static void BlendColor(int y, int x0, int x1, PolyTriangleThreadData* thread) {