change 2 NOSSEs to NOSSE2s
remove 'static' from alpha_lookup
This commit is contained in:
parent
df48d9a889
commit
1849ac85d1
|
@ -846,7 +846,7 @@ static void GL_ReadFramebuffer()
|
||||||
u16* dst = gfx3d_convertedScreen + (y<<8);
|
u16* dst = gfx3d_convertedScreen + (y<<8);
|
||||||
u8* dstAlpha = gfx3d_convertedAlpha + (y<<8);
|
u8* dstAlpha = gfx3d_convertedAlpha + (y<<8);
|
||||||
|
|
||||||
#ifndef NOSSE
|
#ifndef NOSSE2
|
||||||
//I dont know much about this kind of stuff, but this seems to help
|
//I dont know much about this kind of stuff, but this seems to help
|
||||||
//for some reason I couldnt make the intrinsics work
|
//for some reason I couldnt make the intrinsics work
|
||||||
u8* wanx = (u8*)&((u32*)GPU_screen3D)[i];
|
u8* wanx = (u8*)&((u32*)GPU_screen3D)[i];
|
||||||
|
|
|
@ -103,7 +103,7 @@ CACHE_ALIGN const u8 alpha_5bit_to_4bit[] = {
|
||||||
0x10, 0x10
|
0x10, 0x10
|
||||||
};
|
};
|
||||||
|
|
||||||
CACHE_ALIGN static const u16 alpha_lookup[] = {
|
CACHE_ALIGN const u16 alpha_lookup[] = {
|
||||||
0x0000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,
|
0x0000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,
|
||||||
0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,
|
0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,
|
||||||
0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,
|
0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,
|
||||||
|
|
|
@ -951,7 +951,7 @@ static void SoftRastConvertFramebuffer()
|
||||||
|
|
||||||
for(int i=0,y=0;y<192;y++)
|
for(int i=0,y=0;y<192;y++)
|
||||||
{
|
{
|
||||||
#ifndef NOSSE
|
#ifndef NOSSE2
|
||||||
u8* wanx = (u8*)&src[i];
|
u8* wanx = (u8*)&src[i];
|
||||||
#define ASS(X,Y) __asm { prefetchnta [wanx+32*0x##X##Y] }
|
#define ASS(X,Y) __asm { prefetchnta [wanx+32*0x##X##Y] }
|
||||||
#define PUNK(X) ASS(X,0) ASS(X,1) ASS(X,2) ASS(X,3) ASS(X,4) ASS(X,5) ASS(X,6) ASS(X,7) ASS(X,8) ASS(X,9) ASS(X,A) ASS(X,B) ASS(X,C) ASS(X,D) ASS(X,E) ASS(X,F)
|
#define PUNK(X) ASS(X,0) ASS(X,1) ASS(X,2) ASS(X,3) ASS(X,4) ASS(X,5) ASS(X,6) ASS(X,7) ASS(X,8) ASS(X,9) ASS(X,A) ASS(X,B) ASS(X,C) ASS(X,D) ASS(X,E) ASS(X,F)
|
||||||
|
|
Loading…
Reference in New Issue