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 "GSSetupPrimCodeGenerator.h"
|
2011-03-09 11:52:53 +00:00
|
|
|
#include "GSVertexSW.h"
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-19 14:11:16 +00:00
|
|
|
#if _M_SSE < 0x501 && (defined(_M_AMD64) || defined(_WIN64))
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
using namespace Xbyak;
|
|
|
|
|
2016-11-19 14:11:16 +00:00
|
|
|
void GSSetupPrimCodeGenerator::Generate_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
2016-11-15 18:31:41 +00:00
|
|
|
#ifdef _WIN64
|
2011-04-04 11:05:54 +00:00
|
|
|
sub(rsp, 8 + 2 * 16);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
vmovdqa(ptr[rsp + 0], xmm6);
|
|
|
|
vmovdqa(ptr[rsp + 16], xmm7);
|
2016-11-15 18:31:41 +00:00
|
|
|
#endif
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
mov(t0, (size_t)&m_local);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2014-07-15 23:22:54 +00:00
|
|
|
if((m_en.z || m_en.f) && m_sel.prim != GS_SPRITE_CLASS || m_en.t || m_en.c && m_sel.iip)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
2016-11-15 18:31:41 +00:00
|
|
|
mov(rax, (size_t)&m_shift[0]);
|
|
|
|
|
|
|
|
for(int i = 0; i < (m_sel.notest ? 2 : 5); i++)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
movaps(Xmm(3 + i), ptr[rax + i * 16]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-19 14:11:16 +00:00
|
|
|
Depth_SSE();
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-19 14:11:16 +00:00
|
|
|
Texture_SSE();
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-19 14:11:16 +00:00
|
|
|
Color_SSE();
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
#ifdef _WIN64
|
2011-03-02 08:32:30 +00:00
|
|
|
vmovdqa(xmm6, ptr[rsp + 0]);
|
|
|
|
vmovdqa(xmm7, ptr[rsp + 16]);
|
|
|
|
|
2011-04-04 11:05:54 +00:00
|
|
|
add(rsp, 8 + 2 * 16);
|
2016-11-15 18:31:41 +00:00
|
|
|
#endif
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
ret();
|
|
|
|
}
|
|
|
|
|
2016-11-19 14:11:16 +00:00
|
|
|
void GSSetupPrimCodeGenerator::Depth_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
if(!m_en.z && !m_en.f)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2014-07-15 23:22:54 +00:00
|
|
|
if(m_sel.prim != GS_SPRITE_CLASS)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
// GSVector4 p = dscan.p;
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
movaps(xmm0, ptr[a2 + offsetof(GSVertexSW, p)]);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
if(m_en.f)
|
|
|
|
{
|
|
|
|
// GSVector4 df = p.wwww();
|
|
|
|
|
|
|
|
movaps(xmm1, xmm0);
|
|
|
|
shufps(xmm1, xmm1, _MM_SHUFFLE(3, 3, 3, 3));
|
|
|
|
|
|
|
|
// m_local.d4.f = GSVector4i(df * 4.0f).xxzzlh();
|
|
|
|
|
|
|
|
movaps(xmm2, xmm1);
|
|
|
|
mulps(xmm2, xmm3);
|
|
|
|
cvttps2dq(xmm2, xmm2);
|
|
|
|
pshuflw(xmm2, xmm2, _MM_SHUFFLE(2, 2, 0, 0));
|
|
|
|
pshufhw(xmm2, xmm2, _MM_SHUFFLE(2, 2, 0, 0));
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + offsetof(GSScanlineLocalData, d4.f)], xmm2);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
for(int i = 0; i < (m_sel.notest ? 1 : 4); i++)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
// m_local.d[i].f = GSVector4i(df * m_shift[i]).xxzzlh();
|
|
|
|
|
|
|
|
movaps(xmm2, xmm1);
|
|
|
|
mulps(xmm2, Xmm(4 + i));
|
|
|
|
cvttps2dq(xmm2, xmm2);
|
|
|
|
pshuflw(xmm2, xmm2, _MM_SHUFFLE(2, 2, 0, 0));
|
|
|
|
pshufhw(xmm2, xmm2, _MM_SHUFFLE(2, 2, 0, 0));
|
2014-07-15 23:22:54 +00:00
|
|
|
|
|
|
|
const size_t variableOffset = offsetof(GSScanlineLocalData, d[0].f) + (i * sizeof(GSScanlineLocalData::d[0]));
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + variableOffset], xmm2);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(m_en.z)
|
|
|
|
{
|
|
|
|
// GSVector4 dz = p.zzzz();
|
|
|
|
|
|
|
|
shufps(xmm0, xmm0, _MM_SHUFFLE(2, 2, 2, 2));
|
|
|
|
|
|
|
|
// m_local.d4.z = dz * 4.0f;
|
|
|
|
|
|
|
|
movaps(xmm1, xmm0);
|
|
|
|
mulps(xmm1, xmm3);
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + offsetof(GSScanlineLocalData, d4.z)], xmm1);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
for(int i = 0; i < (m_sel.notest ? 1 : 4); i++)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
// m_local.d[i].z = dz * m_shift[i];
|
|
|
|
|
|
|
|
movaps(xmm1, xmm0);
|
|
|
|
mulps(xmm1, Xmm(4 + i));
|
2014-07-15 23:22:54 +00:00
|
|
|
|
|
|
|
const size_t variableOffset = offsetof(GSScanlineLocalData, d[0].z) + (i * sizeof(GSScanlineLocalData::d[0]));
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + variableOffset], xmm1);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-15 18:31:41 +00:00
|
|
|
// GSVector4 p = vertex[index[1]].p;
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
mov(eax, ptr[a1 + sizeof(uint32) * 1]);
|
|
|
|
shl(eax, 6); // * sizeof(GSVertexSW)
|
|
|
|
add(rax, a0);
|
|
|
|
|
|
|
|
movaps(xmm0, ptr[rax + offsetof(GSVertexSW, p)]);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
if(m_en.f)
|
|
|
|
{
|
|
|
|
// m_local.p.f = GSVector4i(p).zzzzh().zzzz();
|
|
|
|
|
|
|
|
cvttps2dq(xmm1, xmm0);
|
|
|
|
pshufhw(xmm1, xmm1, _MM_SHUFFLE(2, 2, 2, 2));
|
|
|
|
pshufd(xmm1, xmm1, _MM_SHUFFLE(2, 2, 2, 2));
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + offsetof(GSScanlineLocalData, p.f)], xmm1);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if(m_en.z)
|
|
|
|
{
|
2016-11-15 18:31:41 +00:00
|
|
|
// uint32 z is bypassed in t.w
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
vmovdqa(xmm0, ptr[rax + offsetof(GSVertexSW, t)]);
|
|
|
|
vpshufd(xmm0, xmm0, _MM_SHUFFLE(3, 3, 3, 3));
|
|
|
|
vmovdqa(ptr[t0 + offsetof(GSScanlineLocalData, p.z)], xmm0);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-19 14:11:16 +00:00
|
|
|
void GSSetupPrimCodeGenerator::Texture_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
if(!m_en.t)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// GSVector4 t = dscan.t;
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
movaps(xmm0, ptr[a2 + offsetof(GSVertexSW, t)]);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
movaps(xmm1, xmm0);
|
|
|
|
mulps(xmm1, xmm3);
|
|
|
|
|
|
|
|
if(m_sel.fst)
|
|
|
|
{
|
2011-04-04 11:05:54 +00:00
|
|
|
// m_local.d4.stq = GSVector4i(t * 4.0f);
|
2011-03-14 03:32:28 +00:00
|
|
|
|
2011-03-02 08:32:30 +00:00
|
|
|
cvttps2dq(xmm1, xmm1);
|
2011-03-14 03:32:28 +00:00
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + offsetof(GSScanlineLocalData, d4.stq)], xmm1);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// m_local.d4.stq = t * 4.0f;
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
movaps(ptr[t0 + offsetof(GSScanlineLocalData, d4.stq)], xmm1);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
|
2011-04-04 11:05:54 +00:00
|
|
|
for(int j = 0, k = m_sel.fst ? 2 : 3; j < k; j++)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
// GSVector4 ds = t.xxxx();
|
|
|
|
// GSVector4 dt = t.yyyy();
|
|
|
|
// GSVector4 dq = t.zzzz();
|
|
|
|
|
|
|
|
movaps(xmm1, xmm0);
|
|
|
|
shufps(xmm1, xmm1, (uint8)_MM_SHUFFLE(j, j, j, j));
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
for(int i = 0; i < (m_sel.notest ? 1 : 4); i++)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
// GSVector4 v = ds/dt * m_shift[i];
|
|
|
|
|
|
|
|
movaps(xmm2, xmm1);
|
|
|
|
mulps(xmm2, Xmm(4 + i));
|
|
|
|
|
2011-04-04 11:05:54 +00:00
|
|
|
if(m_sel.fst)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
2011-03-14 03:32:28 +00:00
|
|
|
// m_local.d[i].s/t = GSVector4i(v);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
cvttps2dq(xmm2, xmm2);
|
|
|
|
|
2014-07-15 23:22:54 +00:00
|
|
|
const size_t variableOffsetS = offsetof(GSScanlineLocalData, d[0].s) + (i * sizeof(GSScanlineLocalData::d[0]));
|
|
|
|
const size_t variableOffsetT = offsetof(GSScanlineLocalData, d[0].t) + (i * sizeof(GSScanlineLocalData::d[0]));
|
|
|
|
|
2011-03-02 08:32:30 +00:00
|
|
|
switch(j)
|
|
|
|
{
|
2016-11-15 18:31:41 +00:00
|
|
|
case 0: movdqa(ptr[t0 + variableOffsetS], xmm2); break;
|
|
|
|
case 1: movdqa(ptr[t0 + variableOffsetT], xmm2); break;
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// m_local.d[i].s/t/q = v;
|
|
|
|
|
2014-07-15 23:22:54 +00:00
|
|
|
const size_t variableOffsetS = offsetof(GSScanlineLocalData, d[0].s) + (i * sizeof(GSScanlineLocalData::d[0]));
|
|
|
|
const size_t variableOffsetT = offsetof(GSScanlineLocalData, d[0].t) + (i * sizeof(GSScanlineLocalData::d[0]));
|
|
|
|
const size_t variableOffsetQ = offsetof(GSScanlineLocalData, d[0].q) + (i * sizeof(GSScanlineLocalData::d[0]));
|
|
|
|
|
2011-03-02 08:32:30 +00:00
|
|
|
switch(j)
|
|
|
|
{
|
2016-11-15 18:31:41 +00:00
|
|
|
case 0: movaps(ptr[t0 + variableOffsetS], xmm2); break;
|
|
|
|
case 1: movaps(ptr[t0 + variableOffsetT], xmm2); break;
|
|
|
|
case 2: movaps(ptr[t0 + variableOffsetQ], xmm2); break;
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-19 14:11:16 +00:00
|
|
|
void GSSetupPrimCodeGenerator::Color_SSE()
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
if(!m_en.c)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(m_sel.iip)
|
|
|
|
{
|
|
|
|
// GSVector4 c = dscan.c;
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
movaps(xmm0, ptr[a2 + offsetof(GSVertexSW, c)]);
|
2011-03-02 08:32:30 +00:00
|
|
|
movaps(xmm1, xmm0);
|
|
|
|
|
|
|
|
// m_local.d4.c = GSVector4i(c * 4.0f).xzyw().ps32();
|
|
|
|
|
|
|
|
movaps(xmm2, xmm0);
|
|
|
|
mulps(xmm2, xmm3);
|
|
|
|
cvttps2dq(xmm2, xmm2);
|
|
|
|
pshufd(xmm2, xmm2, _MM_SHUFFLE(3, 1, 2, 0));
|
|
|
|
packssdw(xmm2, xmm2);
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + offsetof(GSScanlineLocalData, d4.c)], xmm2);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
// xmm3 is not needed anymore
|
|
|
|
|
|
|
|
// GSVector4 dr = c.xxxx();
|
|
|
|
// GSVector4 db = c.zzzz();
|
|
|
|
|
|
|
|
shufps(xmm0, xmm0, _MM_SHUFFLE(0, 0, 0, 0));
|
|
|
|
shufps(xmm1, xmm1, _MM_SHUFFLE(2, 2, 2, 2));
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
for(int i = 0; i < (m_sel.notest ? 1 : 4); i++)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
// GSVector4i r = GSVector4i(dr * m_shift[i]).ps32();
|
|
|
|
|
|
|
|
movaps(xmm2, xmm0);
|
|
|
|
mulps(xmm2, Xmm(4 + i));
|
|
|
|
cvttps2dq(xmm2, xmm2);
|
|
|
|
packssdw(xmm2, xmm2);
|
|
|
|
|
|
|
|
// GSVector4i b = GSVector4i(db * m_shift[i]).ps32();
|
|
|
|
|
|
|
|
movaps(xmm3, xmm1);
|
|
|
|
mulps(xmm3, Xmm(4 + i));
|
|
|
|
cvttps2dq(xmm3, xmm3);
|
|
|
|
packssdw(xmm3, xmm3);
|
|
|
|
|
|
|
|
// m_local.d[i].rb = r.upl16(b);
|
|
|
|
|
|
|
|
punpcklwd(xmm2, xmm3);
|
2014-07-15 23:22:54 +00:00
|
|
|
|
|
|
|
const size_t variableOffset = offsetof(GSScanlineLocalData, d[0].rb) + (i * sizeof(GSScanlineLocalData::d[0]));
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + variableOffset], xmm2);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GSVector4 c = dscan.c;
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
movaps(xmm0, ptr[a2 + offsetof(GSVertexSW, c)]); // not enough regs, have to reload it
|
2011-03-02 08:32:30 +00:00
|
|
|
movaps(xmm1, xmm0);
|
|
|
|
|
|
|
|
// GSVector4 dg = c.yyyy();
|
|
|
|
// GSVector4 da = c.wwww();
|
|
|
|
|
|
|
|
shufps(xmm0, xmm0, _MM_SHUFFLE(1, 1, 1, 1));
|
|
|
|
shufps(xmm1, xmm1, _MM_SHUFFLE(3, 3, 3, 3));
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
for(int i = 0; i < (m_sel.notest ? 1 : 4); i++)
|
2011-03-02 08:32:30 +00:00
|
|
|
{
|
|
|
|
// GSVector4i g = GSVector4i(dg * m_shift[i]).ps32();
|
|
|
|
|
|
|
|
movaps(xmm2, xmm0);
|
|
|
|
mulps(xmm2, Xmm(4 + i));
|
|
|
|
cvttps2dq(xmm2, xmm2);
|
|
|
|
packssdw(xmm2, xmm2);
|
|
|
|
|
|
|
|
// GSVector4i a = GSVector4i(da * m_shift[i]).ps32();
|
|
|
|
|
|
|
|
movaps(xmm3, xmm1);
|
|
|
|
mulps(xmm3, Xmm(4 + i));
|
|
|
|
cvttps2dq(xmm3, xmm3);
|
|
|
|
packssdw(xmm3, xmm3);
|
|
|
|
|
|
|
|
// m_local.d[i].ga = g.upl16(a);
|
|
|
|
|
|
|
|
punpcklwd(xmm2, xmm3);
|
2014-07-15 23:22:54 +00:00
|
|
|
|
|
|
|
const size_t variableOffset = offsetof(GSScanlineLocalData, d[0].ga) + (i * sizeof(GSScanlineLocalData::d[0]));
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + variableOffset], xmm2);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-11-15 18:31:41 +00:00
|
|
|
// GSVector4i c = GSVector4i(vertex[index[last].c);
|
|
|
|
|
|
|
|
int last = 0;
|
|
|
|
|
|
|
|
switch(m_sel.prim)
|
|
|
|
{
|
|
|
|
case GS_POINT_CLASS: last = 0; break;
|
|
|
|
case GS_LINE_CLASS: last = 1; break;
|
|
|
|
case GS_TRIANGLE_CLASS: last = 2; break;
|
|
|
|
case GS_SPRITE_CLASS: last = 1; break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!(m_sel.prim == GS_SPRITE_CLASS && (m_en.z || m_en.f))) // if this is a sprite, the last vertex was already loaded in Depth()
|
|
|
|
{
|
|
|
|
mov(eax, ptr[a1 + sizeof(uint32) * last]);
|
|
|
|
shl(eax, 6); // * sizeof(GSVertexSW)
|
|
|
|
add(rax, a0);
|
|
|
|
}
|
2011-03-02 08:32:30 +00:00
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
cvttps2dq(xmm0, ptr[rax + offsetof(GSVertexSW, c)]);
|
2011-03-02 08:32:30 +00:00
|
|
|
|
|
|
|
// c = c.upl16(c.zwxy());
|
|
|
|
|
|
|
|
pshufd(xmm1, xmm0, _MM_SHUFFLE(1, 0, 3, 2));
|
|
|
|
punpcklwd(xmm0, xmm1);
|
|
|
|
|
|
|
|
// if(!tme) c = c.srl16(7);
|
|
|
|
|
|
|
|
if(m_sel.tfx == TFX_NONE)
|
|
|
|
{
|
|
|
|
psrlw(xmm0, 7);
|
|
|
|
}
|
|
|
|
|
|
|
|
// m_local.c.rb = c.xxxx();
|
|
|
|
// m_local.c.ga = c.zzzz();
|
|
|
|
|
|
|
|
pshufd(xmm1, xmm0, _MM_SHUFFLE(0, 0, 0, 0));
|
|
|
|
pshufd(xmm2, xmm0, _MM_SHUFFLE(2, 2, 2, 2));
|
|
|
|
|
2016-11-15 18:31:41 +00:00
|
|
|
movdqa(ptr[t0 + offsetof(GSScanlineLocalData, c.rb)], xmm1);
|
|
|
|
movdqa(ptr[t0 + offsetof(GSScanlineLocalData, c.ga)], xmm2);
|
2011-03-02 08:32:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-15 23:22:54 +00:00
|
|
|
#endif
|