mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-11 16:50:05 +01:00
GSdx: the TEX1.LCM == 1 mode was still unfinished, the field in PES 2011 for example.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4449 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
1 parent
eb1b8e4d2e
commit
0a5c679fe0
2 files changed
+14
-6
No files matched your search
@@ -1299,6 +1299,8 @@ void GSDrawScanlineCodeGenerator::SampleTextureLOD()
|
||||
|
||||
movq(xmm4, ptr[&m_local.gd->t.minmax]);
|
||||
|
||||
psrlw(xmm4, xmm0);
|
||||
|
||||
punpcklwd(xmm4, xmm4);
|
||||
movdqa(xmm5, xmm4);
|
||||
movdqa(xmm6, xmm4);
|
||||
@@ -1803,7 +1805,7 @@ void GSDrawScanlineCodeGenerator::SampleTextureLOD()
|
||||
psrlw(xmm6, 8);
|
||||
}
|
||||
|
||||
movdqa(xmm0, ptr[&m_local.temp.lod.f]);
|
||||
movdqa(xmm0, ptr[m_sel.lcm ? &m_local.gd->lod.f : &m_local.temp.lod.f]);
|
||||
psrlw(xmm0, 1);
|
||||
|
||||
movdqa(xmm2, ptr[&m_local.temp.trb]);
|
||||
@@ -2916,6 +2918,8 @@ void GSDrawScanlineCodeGenerator::ReadTexel(int pixels, int mip_offset)
|
||||
|
||||
mip_offset *= sizeof(void*);
|
||||
|
||||
const GSVector4i* lod_i = m_sel.lcm ? &m_local.gd->lod.i : &m_local.temp.lod.i;
|
||||
|
||||
if(m_sel.mmin)
|
||||
{
|
||||
#if _M_SSE >= 0x401
|
||||
@@ -2928,7 +2932,7 @@ void GSDrawScanlineCodeGenerator::ReadTexel(int pixels, int mip_offset)
|
||||
|
||||
for(int j = 0; j < 4; j++)
|
||||
{
|
||||
mov(ebx, ptr[&m_local.temp.lod.i.u32[j]]);
|
||||
mov(ebx, ptr[&lod_i->u32[j]]);
|
||||
mov(ebx, ptr[edx + ebx * sizeof(void*) + mip_offset]);
|
||||
|
||||
for(int i = 0; i < 4; i++)
|
||||
@@ -2944,7 +2948,7 @@ void GSDrawScanlineCodeGenerator::ReadTexel(int pixels, int mip_offset)
|
||||
{
|
||||
for(int j = 0; j < 4; j++)
|
||||
{
|
||||
mov(ebx, ptr[&m_local.temp.lod.i.u32[j]]);
|
||||
mov(ebx, ptr[&lod_i->u32[j]]);
|
||||
mov(ebx, ptr[edx + ebx * sizeof(void*) + mip_offset]);
|
||||
|
||||
ReadTexel(xmm6, xmm5, j);
|
||||
|
||||
Reference in new issue
Block a user