GSdx: still working on the rasterizer, would be nice to add some avx code there, but it's just so unfitting for anything.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4407 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11
2011-03-09 11:52:53 +00:00
parent c1e844b7f7
commit 9586e38dd4
18 changed files with 343 additions and 319 deletions
@@ -23,6 +23,7 @@
#include "stdafx.h"
#include "GPUDrawScanlineCodeGenerator.h"
#include "GSVertexSW.h"
static const int _args = 8;
static const int _top = _args + 4;
@@ -152,7 +153,7 @@ void GPUDrawScanlineCodeGenerator::Init()
// GSVector4i vt = GSVector4i(v.t).xxzzl();
cvttps2dq(xmm4, ptr[edx + 32]);
cvttps2dq(xmm4, ptr[edx + offsetof(GSVertexSW, t)]);
pshuflw(xmm4, xmm4, _MM_SHUFFLE(2, 2, 0, 0));
// s = vt.xxxx().add16(m_local.d.s);
@@ -186,7 +187,7 @@ void GPUDrawScanlineCodeGenerator::Init()
{
// GSVector4i vc = GSVector4i(v.c).xxzzlh();
cvttps2dq(xmm6, ptr[edx]);
cvttps2dq(xmm6, ptr[edx + offsetof(GSVertexSW, c)]);
pshuflw(xmm6, xmm6, _MM_SHUFFLE(2, 2, 0, 0));
pshufhw(xmm6, xmm6, _MM_SHUFFLE(2, 2, 0, 0));