gsdx: use constant expression in offsetof

Well previous expression was a constant already but
compiler failed miserably.
This commit is contained in:
Gregory Hainaut 2015-11-13 18:38:48 +01:00
parent 7eb0f3564b
commit 67551f31fd
1 changed files with 2 additions and 2 deletions

View File

@ -1664,8 +1664,8 @@ void GSDrawScanlineCodeGenerator::WriteFrame()
mov(rax, r8);
and(rax, 3);
shl(rax, 5);
vpaddw(xmm2, ptr[r12 + rax + offsetof(GSScanlineGlobalData, dimx[0])]);
vpaddw(xmm3, ptr[r12 + rax + offsetof(GSScanlineGlobalData, dimx[1])]);
vpaddw(xmm2, ptr[r12 + rax + offsetof(GSScanlineGlobalData, dimx) + sizeof(GSVector4i) * 0]);
vpaddw(xmm3, ptr[r12 + rax + offsetof(GSScanlineGlobalData, dimx) + sizeof(GSVector4i) * 1]);
}
// GSVector4i fs = c[0].upl16(c[1]).pu16(c[0].uph16(c[1]));