/* ** LLVM code generated drawers ** Copyright (c) 2016 Magnus Norddahl ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for any purpose, ** including commercial applications, and to alter it and redistribute it ** freely, subject to the following restrictions: ** ** 1. The origin of this software must not be misrepresented; you must not ** claim that you wrote the original software. If you use this software ** in a product, an acknowledgment in the product documentation would be ** appreciated but is not required. ** 2. Altered source versions must be plainly marked as such, and must not be ** misrepresented as being the original software. ** 3. This notice may not be removed or altered from any source distribution. ** */ #include "i_system.h" #include "r_drawers.h" #include "x86.h" #include "c_cvars.h" #include "version.h" #include "m_misc.h" ///////////////////////////////////////////////////////////////////////////// extern "C" { void DrawColumn_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnAdd_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnShaded_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnAddClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnSubClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRevSubClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnTlatedAdd_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnAddClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnSubClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRevSubClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void FillColumn_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void FillColumnAdd_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void FillColumnAddClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void FillColumnSubClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void FillColumnRevSubClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1Copy_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1Add_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1Shaded_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1AddClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1SubClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1RevSubClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1Translated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1TlatedAdd_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1AddClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1SubClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt1RevSubClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4Copy_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4Add_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4Shaded_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4AddClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4SubClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4RevSubClamp_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4Translated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4TlatedAdd_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4AddClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4SubClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawColumnRt4RevSubClampTranslated_SSE2(const DrawColumnArgs *, const WorkerThreadData *); void DrawSpan_SSE2(const DrawSpanArgs *); void DrawSpanMasked_SSE2(const DrawSpanArgs *); void DrawSpanTranslucent_SSE2(const DrawSpanArgs *); void DrawSpanMaskedTranslucent_SSE2(const DrawSpanArgs *); void DrawSpanAddClamp_SSE2(const DrawSpanArgs *); void DrawSpanMaskedAddClamp_SSE2(const DrawSpanArgs *); void vlinec1_SSE2(const DrawWallArgs *, const WorkerThreadData *); void vlinec4_SSE2(const DrawWallArgs *, const WorkerThreadData *); void mvlinec1_SSE2(const DrawWallArgs *, const WorkerThreadData *); void mvlinec4_SSE2(const DrawWallArgs *, const WorkerThreadData *); void tmvline1_add_SSE2(const DrawWallArgs *, const WorkerThreadData *); void tmvline4_add_SSE2(const DrawWallArgs *, const WorkerThreadData *); void tmvline1_addclamp_SSE2(const DrawWallArgs *, const WorkerThreadData *); void tmvline4_addclamp_SSE2(const DrawWallArgs *, const WorkerThreadData *); void tmvline1_subclamp_SSE2(const DrawWallArgs *, const WorkerThreadData *); void tmvline4_subclamp_SSE2(const DrawWallArgs *, const WorkerThreadData *); void tmvline1_revsubclamp_SSE2(const DrawWallArgs *, const WorkerThreadData *); void tmvline4_revsubclamp_SSE2(const DrawWallArgs *, const WorkerThreadData *); void DrawSky1_SSE2(const DrawSkyArgs *, const WorkerThreadData *); void DrawSky4_SSE2(const DrawSkyArgs *, const WorkerThreadData *); void DrawDoubleSky1_SSE2(const DrawSkyArgs *, const WorkerThreadData *); void DrawDoubleSky4_SSE2(const DrawSkyArgs *, const WorkerThreadData *); void TriDrawNormal8_0_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_1_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_2_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_3_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_4_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_5_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_6_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_7_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_8_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_9_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_10_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_11_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal8_12_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_0_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_1_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_2_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_3_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_4_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_5_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_6_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_7_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_8_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_9_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_10_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_11_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_12_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawNormal32_13_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_0_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_1_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_2_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_3_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_4_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_5_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_6_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_7_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_8_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_9_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_10_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_11_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal8_12_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_0_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_1_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_2_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_3_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_4_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_5_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_6_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_7_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_8_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_9_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_10_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_11_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_12_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillNormal32_13_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_0_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_1_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_2_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_3_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_4_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_5_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_6_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_7_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_8_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_9_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_10_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_11_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_12_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector8_13_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_0_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_1_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_2_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_3_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_4_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_5_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_6_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_7_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_8_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_9_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_10_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_11_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_12_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriDrawSubsector32_13_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_0_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_1_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_2_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_3_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_4_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_5_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_6_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_7_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_8_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_9_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_10_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_11_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_12_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector8_13_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_0_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_1_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_2_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_3_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_4_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_5_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_6_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_7_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_8_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_9_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_10_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_11_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_12_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriFillSubsector32_13_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriStencil_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); void TriStencilClose_SSE2(const TriDrawTriangleArgs *, WorkerThreadData *); } ///////////////////////////////////////////////////////////////////////////// Drawers *Drawers::Instance() { static Drawers drawers; static bool firstcall = true; if (!firstcall) return &drawers; drawers.DrawColumn = DrawColumn_SSE2; drawers.DrawColumnAdd = DrawColumnAdd_SSE2; drawers.DrawColumnShaded = DrawColumnShaded_SSE2; drawers.DrawColumnAddClamp = DrawColumnAddClamp_SSE2; drawers.DrawColumnSubClamp = DrawColumnSubClamp_SSE2; drawers.DrawColumnRevSubClamp = DrawColumnRevSubClamp_SSE2; drawers.DrawColumnTranslated = DrawColumnTranslated_SSE2; drawers.DrawColumnTlatedAdd = DrawColumnTlatedAdd_SSE2; drawers.DrawColumnAddClampTranslated = DrawColumnAddClampTranslated_SSE2; drawers.DrawColumnSubClampTranslated = DrawColumnSubClampTranslated_SSE2; drawers.DrawColumnRevSubClampTranslated = DrawColumnRevSubClampTranslated_SSE2; drawers.FillColumn = FillColumn_SSE2; drawers.FillColumnAdd = FillColumnAdd_SSE2; drawers.FillColumnAddClamp = FillColumnAddClamp_SSE2; drawers.FillColumnSubClamp = FillColumnSubClamp_SSE2; drawers.FillColumnRevSubClamp = FillColumnRevSubClamp_SSE2; drawers.DrawColumnRt1 = DrawColumnRt1_SSE2; drawers.DrawColumnRt1Copy = DrawColumnRt1Copy_SSE2; drawers.DrawColumnRt1Add = DrawColumnRt1Add_SSE2; drawers.DrawColumnRt1Shaded = DrawColumnRt1Shaded_SSE2; drawers.DrawColumnRt1AddClamp = DrawColumnRt1AddClamp_SSE2; drawers.DrawColumnRt1SubClamp = DrawColumnRt1SubClamp_SSE2; drawers.DrawColumnRt1RevSubClamp = DrawColumnRt1RevSubClamp_SSE2; drawers.DrawColumnRt1Translated = DrawColumnRt1Translated_SSE2; drawers.DrawColumnRt1TlatedAdd = DrawColumnRt1TlatedAdd_SSE2; drawers.DrawColumnRt1AddClampTranslated = DrawColumnRt1AddClampTranslated_SSE2; drawers.DrawColumnRt1SubClampTranslated = DrawColumnRt1SubClampTranslated_SSE2; drawers.DrawColumnRt1RevSubClampTranslated = DrawColumnRt1RevSubClampTranslated_SSE2; drawers.DrawColumnRt4 = DrawColumnRt4_SSE2; drawers.DrawColumnRt4Copy = DrawColumnRt4Copy_SSE2; drawers.DrawColumnRt4Add = DrawColumnRt4Add_SSE2; drawers.DrawColumnRt4Shaded = DrawColumnRt4Shaded_SSE2; drawers.DrawColumnRt4AddClamp = DrawColumnRt4AddClamp_SSE2; drawers.DrawColumnRt4SubClamp = DrawColumnRt4SubClamp_SSE2; drawers.DrawColumnRt4RevSubClamp = DrawColumnRt4RevSubClamp_SSE2; drawers.DrawColumnRt4Translated = DrawColumnRt4Translated_SSE2; drawers.DrawColumnRt4TlatedAdd = DrawColumnRt4TlatedAdd_SSE2; drawers.DrawColumnRt4AddClampTranslated = DrawColumnRt4AddClampTranslated_SSE2; drawers.DrawColumnRt4SubClampTranslated = DrawColumnRt4SubClampTranslated_SSE2; drawers.DrawColumnRt4RevSubClampTranslated = DrawColumnRt4RevSubClampTranslated_SSE2; drawers.DrawSpan = DrawSpan_SSE2; drawers.DrawSpanMasked = DrawSpanMasked_SSE2; drawers.DrawSpanTranslucent = DrawSpanTranslucent_SSE2; drawers.DrawSpanMaskedTranslucent = DrawSpanMaskedTranslucent_SSE2; drawers.DrawSpanAddClamp = DrawSpanAddClamp_SSE2; drawers.DrawSpanMaskedAddClamp = DrawSpanMaskedAddClamp_SSE2; drawers.vlinec1 = vlinec1_SSE2; drawers.vlinec4 = vlinec4_SSE2; drawers.mvlinec1 = mvlinec1_SSE2; drawers.mvlinec4 = mvlinec4_SSE2; drawers.tmvline1_add = tmvline1_add_SSE2; drawers.tmvline4_add = tmvline4_add_SSE2; drawers.tmvline1_addclamp = tmvline1_addclamp_SSE2; drawers.tmvline4_addclamp = tmvline4_addclamp_SSE2; drawers.tmvline1_subclamp = tmvline1_subclamp_SSE2; drawers.tmvline4_subclamp = tmvline4_subclamp_SSE2; drawers.tmvline1_revsubclamp = tmvline1_revsubclamp_SSE2; drawers.tmvline4_revsubclamp = tmvline4_revsubclamp_SSE2; drawers.DrawSky1 = DrawSky1_SSE2; drawers.DrawSky4 = DrawSky4_SSE2; drawers.DrawDoubleSky1 = DrawDoubleSky1_SSE2; drawers.DrawDoubleSky4 = DrawDoubleSky4_SSE2; drawers.TriDrawNormal8.push_back(TriDrawNormal8_0_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_1_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_2_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_3_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_4_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_5_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_6_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_7_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_8_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_9_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_10_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_11_SSE2); drawers.TriDrawNormal8.push_back(TriDrawNormal8_12_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_0_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_1_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_2_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_3_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_4_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_5_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_6_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_7_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_8_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_9_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_10_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_11_SSE2); drawers.TriDrawNormal32.push_back(TriDrawNormal32_12_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_0_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_1_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_2_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_3_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_4_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_5_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_6_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_7_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_8_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_9_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_10_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_11_SSE2); drawers.TriFillNormal8.push_back(TriFillNormal8_12_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_0_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_1_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_2_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_3_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_4_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_5_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_6_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_7_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_8_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_9_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_10_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_11_SSE2); drawers.TriFillNormal32.push_back(TriFillNormal32_12_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_0_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_1_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_2_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_3_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_4_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_5_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_6_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_7_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_8_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_9_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_10_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_11_SSE2); drawers.TriDrawSubsector8.push_back(TriDrawSubsector8_12_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_0_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_1_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_2_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_3_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_4_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_5_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_6_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_7_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_8_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_9_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_10_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_11_SSE2); drawers.TriDrawSubsector32.push_back(TriDrawSubsector32_12_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_0_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_1_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_2_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_3_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_4_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_5_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_6_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_7_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_8_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_9_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_10_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_11_SSE2); drawers.TriFillSubsector8.push_back(TriFillSubsector8_12_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_0_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_1_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_2_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_3_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_4_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_5_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_6_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_7_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_8_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_9_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_10_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_11_SSE2); drawers.TriFillSubsector32.push_back(TriFillSubsector32_12_SSE2); drawers.TriStencil = TriStencil_SSE2; drawers.TriStencilClose = TriStencilClose_SSE2; firstcall = false; return &drawers; } FString DrawWallArgs::ToString() { FString info; info.Format("dest_y = %i, count = %i, flags = %i, texturefrac[0] = %u, textureheight[0] = %u", dest_y, count, flags, texturefrac[0], textureheight[0]); return info; } FString DrawSpanArgs::ToString() { FString info; info.Format("x1 = %i, x2 = %i, y = %i, flags = %i", x1, x2, y, flags); return info; } FString DrawColumnArgs::ToString() { FString info; info.Format("dest_y = %i, count = %i, flags = %i, iscale = %i (%f), texturefrac = %i (%f)", dest_y, count, flags, iscale, ((fixed_t)iscale) / (float)FRACUNIT, texturefrac, ((fixed_t)texturefrac) / (float)FRACUNIT); return info; } FString DrawSkyArgs::ToString() { FString info; info.Format("dest_y = %i, count = %i", dest_y, count); return info; }