mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-09-08 22:02:58 +02:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user