mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
GFX: revert of r4044
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4051 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -91,8 +91,8 @@
|
||||
#define XFMEM_SETMATRIXINDA 0x1018
|
||||
#define XFMEM_SETMATRIXINDB 0x1019
|
||||
#define XFMEM_SETVIEWPORT 0x101a
|
||||
#define XFMEM_SETCONST_ZNEAR 0x101c
|
||||
#define XFMEM_SETCONST_ZFAR 0x101f
|
||||
#define XFMEM_SETZSCALE 0x101c
|
||||
#define XFMEM_SETZOFFSET 0x101f
|
||||
#define XFMEM_SETPROJECTION 0x1020
|
||||
#define XFMEM_SETNUMTEXGENS 0x103f
|
||||
#define XFMEM_SETTEXMTXINFO 0x1040
|
||||
@ -228,7 +228,6 @@ struct XFRegisters
|
||||
bool bEnableDualTexTransform;
|
||||
float rawViewport[6];
|
||||
float rawProjection[7];
|
||||
float depthRangeConst[2];
|
||||
};
|
||||
|
||||
|
||||
|
@ -173,16 +173,14 @@ void LoadXFReg(u32 transferSize, u32 baseAddress, u32 *pData)
|
||||
// Actually everything i tried didn't seem to change anything x)
|
||||
// paper mario writes 16777216.0f, 1677721.75
|
||||
// Killer 7 writes 16777216.0f here
|
||||
// WARN_LOG(VIDEO, "Set ZScale : %x=%x\n", address, data);
|
||||
case XFMEM_SETZSCALE:
|
||||
WARN_LOG(VIDEO, "Set ZScale : %x=%x\n", address, data);
|
||||
break;
|
||||
|
||||
// paper mario writes 16777216.0f, 5033165.0f
|
||||
// Killer 7 alterns this between 16777216.0f and 16710107.0f
|
||||
// WARN_LOG(VIDEO, "Set ZOffset : %x=%x\n", address, data);
|
||||
|
||||
case XFMEM_SETCONST_ZNEAR:
|
||||
xfregs.depthRangeConst[0] = *((float*)&data);
|
||||
break;
|
||||
case XFMEM_SETCONST_ZFAR:
|
||||
xfregs.depthRangeConst[1] = *((float*)&data);
|
||||
case XFMEM_SETZOFFSET:
|
||||
WARN_LOG(VIDEO, "Set ZOffset : %x=%x\n", address, data);
|
||||
break;
|
||||
|
||||
// --------------
|
||||
|
Reference in New Issue
Block a user