2011-03-02 08:32:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2007-2009 Gabest
|
|
|
|
* http://www.gabest.org
|
|
|
|
*
|
|
|
|
* This Program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This Program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GNU Make; see the file COPYING. If not, write to
|
2012-09-09 18:16:11 +00:00
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA USA.
|
2011-03-02 08:32:30 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "GSDrawScanlineCodeGenerator.h"
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
#if _M_SSE < 0x501 && (defined(_M_AMD64) || defined(_WIN64))
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-18 17:10:30 +00:00
|
|
|
// It is useless to port the code to SSEx, better use the faster 32 bits version instead
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::Generate_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
2016-11-18 17:10:30 +00:00
|
|
|
// Avoid a crash if someone want to use it
|
|
|
|
ret();
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::Init_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::Step_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::TestZ_SSE(const Xmm& temp1, const Xmm& temp2)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::SampleTexture_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::Wrap_SSE(const Xmm& uv)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::Wrap_SSE(const Xmm& uv0, const Xmm& uv1)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::AlphaTFX_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::ReadMask_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::TestAlpha_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::ColorTFX_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::Fog_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::ReadFrame_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::TestDestAlpha_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::WriteMask_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::WriteZBuf_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::AlphaBlend_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::WriteFrame_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::ReadPixel_SSE(const Xmm& dst, const Reg64& addr)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::WritePixel_SSE(const Xmm& src, const Reg64& addr, const Reg8& mask, bool fast, int psm, int fz)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static const int s_offsets[4] = {0, 2, 8, 10};
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::WritePixel_SSE(const Xmm& src, const Reg64& addr, uint8 i, int psm)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::ReadTexel_SSE(int pixels, int mip_offset)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-11-19 13:17:38 +00:00
|
|
|
void GSDrawScanlineCodeGenerator::ReadTexel_SSE(const Xmm& dst, const Xmm& addr, uint8 i)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-03-02 08:44:16 +00:00
|
|
|
#endif
|