From 35b77ea9142ab1ef4619ee321ef2d79c28c5ea6d Mon Sep 17 00:00:00 2001 From: jarupxx Date: Wed, 20 Dec 2017 20:02:00 +0900 Subject: [PATCH] D3D HLEDataBase Cleanup --- src/CxbxKrnl/HLEDataBase/D3D8.1.0.3911.inl | 338 -- src/CxbxKrnl/HLEDataBase/D3D8.1.0.3925.inl | 4995 -------------------- src/CxbxKrnl/HLEDataBase/D3D8.1.0.4034.inl | 717 +-- src/CxbxKrnl/HLEDataBase/D3D8.1.0.4134.inl | 1955 -------- src/CxbxKrnl/HLEDataBase/D3D8.1.0.4361.inl | 1085 +---- src/CxbxKrnl/HLEDataBase/D3D8.1.0.4432.inl | 559 --- src/CxbxKrnl/HLEDataBase/D3D8.1.0.4531.inl | 18 - src/CxbxKrnl/HLEDataBase/D3D8.1.0.4627.inl | 1931 -------- src/CxbxKrnl/HLEDataBase/D3D8.1.0.4831.inl | 32 - src/CxbxKrnl/HLEDataBase/D3D8.1.0.5028.inl | 637 --- src/CxbxKrnl/HLEDataBase/D3D8.1.0.5233.inl | 494 -- src/CxbxKrnl/HLEDataBase/D3D8.1.0.5344.inl | 688 --- src/CxbxKrnl/HLEDataBase/D3D8.1.0.5455.inl | 189 - src/CxbxKrnl/HLEDataBase/D3D8.1.0.5558.inl | 1723 ------- src/CxbxKrnl/HLEDataBase/D3D8.1.0.5788.inl | 1148 ----- src/CxbxKrnl/HLEDataBase/D3D8.1.0.5849.inl | 93 - 16 files changed, 4 insertions(+), 16598 deletions(-) diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.3911.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.3911.inl index ab1e85549..ef5ecd771 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.3911.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.3911.inl @@ -1105,26 +1105,6 @@ OOVPA_NO_XREF(D3DDevice_IsBusy, 3911, 11) { 0x33, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_IsBusy -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_IsBusy, 3911, 8) - - { 0x0B, 0x8B }, - { 0x0C, 0x90 }, - { 0x0D, 0x04 }, - { 0x0E, 0x04 }, - - { 0x1E, 0x74 }, - { 0x1F, 0x06 }, - - { 0x25, 0xC3 }, - - { 0x33, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetDeviceCaps // ****************************************************************** @@ -1220,33 +1200,6 @@ OOVPA_NO_XREF(D3DDevice_EndVisibilityTest, 3911, 21) { 0x37, 0x00 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_EndVisibilityTest -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndVisibilityTest, 3911, 13) - - // D3DDevice_EndVisibilityTest+0x11 : mov eax, 0x8007000E - { 0x11, 0xB8 }, - { 0x12, 0x0E }, - { 0x13, 0x00 }, - { 0x14, 0x07 }, - { 0x15, 0x80 }, - - // D3DDevice_EndVisibilityTest+0x2D : mov dword ptr [eax], 0x000817CC - { 0x2D, 0xC7 }, - { 0x2E, 0x00 }, - { 0x2F, 0xCC }, - { 0x30, 0x17 }, - { 0x31, 0x08 }, - - // D3DDevice_EndVisibilityTest+0x43 : add eax, 0x0C - { 0x43, 0x83 }, - { 0x44, 0xC0 }, - { 0x45, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetVisibilityTestResult // ****************************************************************** @@ -2791,33 +2744,6 @@ OOVPA_XREF(D3DVolumeTexture_LockBox, 3911, 1+1, { 0x00, 0xE9 }, OOVPA_END; -#if 0 // only perform a jmp to Lock3DSurface -// ****************************************************************** -// * D3DVolumeTexture_LockBox -// ****************************************************************** -OOVPA_NO_XREF(D3DVolumeTexture_LockBox, 3911, 11) - - // D3DVolumeTexture_LockBox+0x08 : test bl, 0x20 - { 0x08, 0xF6 }, - { 0x09, 0xC3 }, - { 0x0A, 0x20 }, - - // D3DVolumeTexture_LockBox+0x40 : test bl, 0x40 - { 0x40, 0xF6 }, - { 0x41, 0xC3 }, - { 0x42, 0x40 }, - - // D3DVolumeTexture_LockBox+0x83 : lea ecx, [eax+edx] - { 0x83, 0x8D }, - { 0x84, 0x0C }, - { 0x85, 0x10 }, - - // D3DVolumeTexture_LockBox+0x99 : retn 0x14 - { 0x99, 0xC2 }, - { 0x9A, 0x14 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DCubeTexture_LockRect // ****************************************************************** @@ -2831,33 +2757,6 @@ OOVPA_XREF(D3DCubeTexture_LockRect, 3911, 1+1, { 0x00, 0xE9 }, OOVPA_END; -#if 0 // only perform a jmp to Lock2DSurface -// ****************************************************************** -// * D3DCubeTexture_LockRect -// ****************************************************************** -OOVPA_NO_XREF(D3DCubeTexture_LockRect, 3911, 11) - - // D3DCubeTexture_LockRect+0x06 : test bl, 0x20 - { 0x06, 0xF6 }, - { 0x07, 0xC3 }, - { 0x08, 0x20 }, - - // D3DCubeTexture_LockRect+0x3F : test bl, 0x40 - { 0x3F, 0xF6 }, - { 0x40, 0xC3 }, - { 0x41, 0x40 }, - - // D3DCubeTexture_LockRect+0x71 : shr edx, 0x03 - { 0x71, 0xC1 }, - { 0x72, 0xEA }, - { 0x73, 0x03 }, - - // D3DCubeTexture_LockRect+0x98 : retn 0x18 - { 0x98, 0xC2 }, - { 0x99, 0x18 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DTexture_GetSurfaceLevel // ****************************************************************** @@ -3062,32 +2961,6 @@ OOVPA_NO_XREF(D3DDevice_GetViewport, 3911, 16) { 0x1C, 0x00 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 3911, 10) - - // D3DDevice_GetViewport+0x05 : push esi; push edi - { 0x05, 0x56 }, - { 0x06, 0x57 }, - - // D3DDevice_GetViewport+0x0B : lea esi, [eax+0x0B00] - { 0x0B, 0x8D }, - { 0x0C, 0xB0 }, - { 0x0D, 0x00 }, - { 0x0E, 0x0B }, - - // D3DDevice_GetViewport+0x11 : mov ecx, 6 - { 0x11, 0xB9 }, - { 0x12, 0x06 }, - - // D3DDevice_GetViewport+0x1A : retn 0x04 - { 0x1A, 0xC2 }, - { 0x1B, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetDisplayFieldStatus // ****************************************************************** @@ -3109,36 +2982,6 @@ OOVPA_NO_XREF(D3DDevice_GetDisplayFieldStatus, 3911, 12) { 0x1C, 0x74 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetDisplayFieldStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayFieldStatus, 3911, 14) - - // D3DDevice_GetDisplayFieldStatus+0x05 : mov edx, [eax+0x2B28] - { 0x05, 0x8B }, - { 0x06, 0x90 }, - { 0x07, 0x28 }, - { 0x08, 0x2B }, - - // D3DDevice_GetDisplayFieldStatus+0x12 : test [eax+0x2510], 0x1200000 - { 0x12, 0xF7 }, - { 0x13, 0x80 }, - { 0x14, 0x10 }, - { 0x15, 0x25 }, - - // D3DDevice_GetDisplayFieldStatus+0x1E : mov dx, 0x80C0 - { 0x1E, 0x66 }, - { 0x1F, 0xBA }, - { 0x20, 0xC0 }, - { 0x21, 0x80 }, - - // D3DDevice_GetDisplayFieldStatus+0x3C : retn 4 - { 0x3C, 0xC2 }, - { 0x3D, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_MultiSampleAntiAlias // ****************************************************************** @@ -3577,23 +3420,6 @@ OOVPA_NO_XREF(D3DDevice_DrawVertices, 3911, 17) { 0x20, 0x50 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_DrawVertices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVertices, 3911, 8) - - { 0x12, 0x8B }, - { 0x27, 0x8B }, - { 0x3A, 0x89 }, - { 0x4E, 0xFF }, - { 0x62, 0x81 }, - { 0x76, 0x00 }, - { 0x8A, 0x17 }, - { 0x9E, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetDisplayMode // ****************************************************************** @@ -3686,21 +3512,6 @@ OOVPA_NO_XREF(D3D_AllocContiguousMemory, 3911, 14) { 0x0D, 0x50 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_AllocContiguousMemory -// ****************************************************************** -OOVPA_NO_XREF(D3D_AllocContiguousMemory, 3911, 6) - - { 0x02, 0x24 }, - { 0x06, 0x24 }, - { 0x0A, 0x04 }, - { 0x0E, 0x6A }, - { 0x16, 0xC2 }, - { 0x17, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_Deferred // ****************************************************************** @@ -3774,23 +3585,6 @@ OOVPA_XREF(D3DDevice_SetLight, 3911, 15, { 0x63, 0xF3 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetLight -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetLight, 3911, 8) - - { 0x1D, 0x0F }, - { 0x3C, 0xD8 }, - { 0x5B, 0x00 }, - { 0x7A, 0x89 }, - { 0x99, 0xA5 }, - { 0xB8, 0xC1 }, - { 0xD7, 0x00 }, - { 0xF6, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetProjectionViewportMatrix // ****************************************************************** @@ -3830,22 +3624,6 @@ OOVPA_NO_XREF(D3DDevice_GetTile, 3911, 16) { 0x24, 0x08 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 3911, 7) - - { 0x03, 0x04 }, - { 0x0A, 0x56 }, - { 0x0D, 0x7C }, - { 0x12, 0x40 }, - { 0x17, 0x21 }, - { 0x1C, 0x00 }, - { 0x21, 0x5F }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_ApplyStateBlock // ****************************************************************** @@ -3961,22 +3739,6 @@ OOVPA_NO_XREF(D3DDevice_SetPixelShaderProgram, 3911, 19) { 0x3A, 0xE9 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetPixelShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderProgram, 3911, 7) - - { 0x06, 0xA1 }, - { 0x0E, 0x88 }, - { 0x16, 0x00 }, - { 0x1E, 0x00 }, - { 0x26, 0x04 }, - { 0x32, 0xC7 }, - { 0x36, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_KickOffAndWaitForIdle // ****************************************************************** @@ -4048,23 +3810,6 @@ OOVPA_NO_XREF(D3DDevice_SetScissors, 3911, 17) // Up to 5233 { 0x53, 0x24 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetScissors -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScissors, 3911, 8) - - { 0x1D, 0x08 }, - { 0x3C, 0x24 }, - { 0x5F, 0x8B }, - { 0x7A, 0x83 }, - { 0x99, 0xE0 }, - { 0xBA, 0xD9 }, - { 0xD9, 0x8B }, - { 0xF6, 0xDB }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVertexShaderInput // ****************************************************************** @@ -4173,22 +3918,6 @@ OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 3911, 13) // Up to 5849 { 0x6E, 0x86 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_EndPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 3911, 7) - - { 0x11, 0x8D }, - { 0x24, 0x8B }, - { 0x37, 0xFC }, - { 0x4A, 0xFF }, - { 0x5D, 0xF7 }, - { 0x70, 0x03 }, - { 0x83, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_RopZCmpAlwaysRead // ****************************************************************** @@ -4360,22 +4089,6 @@ OOVPA_NO_XREF(D3DDevice_LoadVertexShaderProgram, 3911, 16) { 0x17, 0xC1 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_LoadVertexShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LoadVertexShaderProgram, 3911, 7) - - { 0x0B, 0x2D }, - { 0x18, 0x10 }, - { 0x25, 0x00 }, - { 0x32, 0xA5 }, - { 0x3F, 0x8B }, - { 0x4C, 0x00 }, - { 0x59, 0xE8 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_DeleteVertexShader // ****************************************************************** @@ -4434,22 +4147,6 @@ OOVPA_NO_XREF(D3DDevice_Reset, 3911, 10) { 0x38, 0x10 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_Reset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Reset, 3911, 7) - - { 0x15, 0x8B }, - { 0x2C, 0x8B }, - { 0x43, 0x8B }, - { 0x5A, 0x08 }, - { 0x74, 0x8B }, - { 0x88, 0x50 }, - { 0x9F, 0x03 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_GetAdapterIdentifier // ****************************************************************** @@ -4775,23 +4472,6 @@ OOVPA_NO_XREF(D3DDevice_GetVertexShaderInput, 3911, 17) { 0x35, 0x0C }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderInput -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderInput, 3911, 8) - - { 0x00, 0x8B }, - { 0x03, 0x08 }, - { 0x04, 0x85 }, - { 0x05, 0xC9 }, - { 0x06, 0xA1 }, - { 0x10, 0x07 }, - { 0x18, 0x04 }, - { 0x1F, 0x20 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_RunVertexStateShader // ****************************************************************** @@ -4847,24 +4527,6 @@ OOVPA_NO_XREF(D3DDevice_GetVertexShaderDeclaration, 3911, 15) { 0x40, 0x33 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderDeclaration -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderDeclaration, 3911, 9) - - { 0x00F, 0x8B }, - { 0x010, 0x4C }, - { 0x011, 0x24 }, - { 0x012, 0x1C }, - { 0x013, 0xC7 }, - { 0x014, 0x01 }, - { 0x015, 0x00 }, - { 0x11F, 0x83 }, - { 0x129, 0x0F }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetVertexShaderFunction // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.3925.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.3925.inl index 3956fdcb3..3818cca27 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.3925.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.3925.inl @@ -57,4998 +57,3 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMode, 3925, 12) { 0x22, 0xC2 }, { 0x23, 0x04 }, OOVPA_END; - -#if 0 // Moved to 3911 -// ****************************************************************** -// * Direct3D_CreateDevice -// ****************************************************************** -OOVPA_NO_XREF(Direct3D_CreateDevice, 3911, 18) // Also for 4361, 4627, 5558, 5659, 5788, 5849, 5933 (NOT 5344!) - - { 0x00, 0xA1 }, - - { 0x05, 0x85 }, - { 0x06, 0xC0 }, - { 0x07, 0x75 }, - { 0x08, 0x0A }, - { 0x09, 0xC7 }, - { 0x0A, 0x05 }, - - { 0x0F, 0x00 }, - { 0x10, 0x00 }, - { 0x11, 0x08 }, - { 0x12, 0x00 }, - { 0x13, 0xA1 }, - - { 0x18, 0x85 }, - { 0x19, 0xC0 }, - { 0x1A, 0x75 }, - { 0x1B, 0x0A }, - { 0x1C, 0xC7 }, - { 0x1D, 0x05 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * Direct3D_CreateDevice -// ****************************************************************** -OOVPA_NO_XREF(Direct3D_CreateDevice, 3925, 8) - // Direct3D_CreateDevice+0x07 : jnz +0x0A - { 0x07, 0x75 }, - { 0x08, 0x0A }, - - // Direct3D_CreateDevice+0x79 : mov eax, esi - { 0x79, 0x8B }, - { 0x7A, 0xC6 }, - - // Direct3D_CreateDevice+0x7C : retn 0x18 - { 0x7C, 0xC2 }, - { 0x7D, 0x18 }, - - // Direct3D_CreateDevice+0x90 : retn 0x18 - { 0x90, 0xC2 }, - { 0x91, 0x18 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_IsBusy -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_IsBusy, 3925, 8) - { 0x0B, 0x8B }, - { 0x0C, 0x90 }, - { 0x0D, 0x04 }, - { 0x0E, 0x04 }, - - { 0x1E, 0x74 }, - { 0x1F, 0x06 }, - - { 0x25, 0xC3 }, - - { 0x33, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetDeviceCaps -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDeviceCaps, 3925, 11) - // D3DDevice_GetDeviceCaps+0x00 : push esi; push edi - { 0x00, 0x56 }, - { 0x01, 0x57 }, - - // D3DDevice_GetDeviceCaps+0x06 : mov ecx, 0x35 - { 0x06, 0xB9 }, - { 0x07, 0x35 }, - { 0x08, 0x00 }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - - // D3DDevice_GetDeviceCaps+0x10 : rep movsd - { 0x10, 0xF3 }, - { 0x11, 0xA5 }, - - // D3DDevice_GetDeviceCaps+0x14 : retn 0x04 - { 0x14, 0xC2 }, - { 0x15, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_BeginVisibilityTest -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginVisibilityTest, 3925, 11) - - // D3DDevice_BeginVisibilityTest+0x0D : mov ecx, 1 - { 0x0D, 0xB9 }, - { 0x0E, 0x01 }, - { 0x0F, 0x00 }, - - // D3DDevice_BeginVisibilityTest+0x12 : mov dword ptr [eax], 0x000817C8 - { 0x12, 0xC7 }, - { 0x13, 0x00 }, - { 0x14, 0xC8 }, - { 0x15, 0x17 }, - { 0x16, 0x08 }, - - // D3DDevice_BeginVisibilityTest+0x1E : add eax, 0x0C - { 0x1E, 0x83 }, - { 0x1F, 0xC0 }, - { 0x20, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetMaterial, 3925, 9) - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - { 0x0C, 0xB0 }, - { 0x0D, 0x18 }, - { 0x0E, 0x0B }, - { 0x11, 0xB9 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_EndVisibilityTest -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndVisibilityTest, 3925, 13) - - // D3DDevice_EndVisibilityTest+0x11 : mov eax, 0x8007000E - { 0x11, 0xB8 }, - { 0x12, 0x0E }, - { 0x13, 0x00 }, - { 0x14, 0x07 }, - { 0x15, 0x80 }, - - // D3DDevice_EndVisibilityTest+0x2D : mov dword ptr [eax], 0x000817CC - { 0x2D, 0xC7 }, - { 0x2E, 0x00 }, - { 0x2F, 0xCC }, - { 0x30, 0x17 }, - { 0x31, 0x08 }, - - // D3DDevice_EndVisibilityTest+0x43 : add eax, 0x0C - { 0x43, 0x83 }, - { 0x44, 0xC0 }, - { 0x45, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetVisibilityTestResult -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVisibilityTestResult, 3925, 11) - // D3DDevice_GetVisibilityTestResult+0x0C : shr ecx, 8 - { 0x0C, 0xC1 }, - { 0x0D, 0xE9 }, - { 0x0E, 0x08 }, - - // D3DDevice_GetVisibilityTestResult+0x0F : and eax, 0xFF - { 0x0F, 0x25 }, - { 0x10, 0xFF }, - { 0x11, 0x00 }, - - // D3DDevice_GetVisibilityTestResult+0x2B : mov eax, 0x88760828 - { 0x2B, 0xB8 }, - { 0x2C, 0x28 }, - { 0x2D, 0x08 }, - { 0x2E, 0x76 }, - { 0x2F, 0x88 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D::CDevice::KickOff -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_KickOff, 3925, 10) - { 0x01, 0xA1 }, - - { 0x32, 0x81 }, - { 0x33, 0xCA }, - { 0x36, 0x01 }, - - { 0x5E, 0x89 }, - { 0x5F, 0x50 }, - { 0x60, 0x40 }, - - { 0x90, 0x83 }, - { 0x91, 0xEA }, - { 0x92, 0x02 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_LoadVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LoadVertexShader, 3925, 10) - // D3DDevice_LoadVertexShader+0x07 : mov al, [ebx+0x0C] - { 0x07, 0x8A }, - { 0x08, 0x43 }, - { 0x09, 0x0C }, - - // D3DDevice_LoadVertexShader+0x3D : mov dword ptr [eax], 0x00041E9C - { 0x3D, 0xC7 }, - { 0x3E, 0x00 }, - { 0x3F, 0x9C }, - { 0x40, 0x1E }, - { 0x41, 0x04 }, - - // D3DDevice_LoadVertexShader+0x4E : mov [ebx], ebx - { 0x4E, 0x89 }, - { 0x4F, 0x13 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SelectVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SelectVertexShader, 3925, 11) - // D3DDevice_SelectVertexShader+0x16 : or ecx, 0x3A0 - { 0x16, 0x81 }, - { 0x17, 0xC9 }, - { 0x18, 0xA0 }, - { 0x19, 0x03 }, - - // D3DDevice_SelectVertexShader+0x3F : mov dword ptr [eax], 0x00081E94 - { 0x3F, 0xC7 }, - { 0x40, 0x00 }, - { 0x41, 0x94 }, - { 0x42, 0x1E }, - { 0x43, 0x08 }, - - // D3DDevice_SelectVertexShader+0x51 : mov [esi], eax - { 0x51, 0x89 }, - { 0x52, 0x06 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_BlockUntilVerticalBlank -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 3925, 14) - // D3DDevice_BlockUntilVerticalBlank+0x05 : push 0;push 0;push 1 - { 0x05, 0x6A }, - { 0x06, 0x00 }, - { 0x07, 0x6A }, - { 0x08, 0x00 }, - { 0x09, 0x6A }, - { 0x0A, 0x01 }, - - // D3DDevice_BlockUntilVerticalBlank+0x0B : mov dword ptr [eax+0x24F4], - { 0x0B, 0xC7 }, - { 0x0C, 0x80 }, - { 0x0D, 0xF4 }, - { 0x0E, 0x24 }, - { 0x0F, 0x00 }, - - // D3DDevice_BlockUntilVerticalBlank+0x17 : and eax, 0x24F0 - { 0x17, 0x05 }, - { 0x18, 0xF0 }, - { 0x19, 0x24 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVerticalBlankCallback -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVerticalBlankCallback, 3925, 12) - // D3DDevice_SetVerticalBlankCallback+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetVerticalBlankCallback+0x0A : mov [ecx+0x24EC], eax - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0C, 0xEC }, - { 0x0D, 0x24 }, - { 0x0E, 0x00 }, - - // D3DDevice_SetVerticalBlankCallback+0x10 : retn 0x04 - { 0x10, 0xC2 }, - { 0x11, 0x04 }, - { 0x12, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderTarget -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderTarget, 3925, 11) - // D3DDevice_SetRenderTarget+0x00 : sub esp, 0x20 - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x20 }, - - // D3DDevice_SetRenderTarget+0x32 : mov [esp+0x34], ebx - { 0x32, 0x89 }, - { 0x33, 0x5C }, - { 0x34, 0x24 }, - { 0x35, 0x34 }, - - // D3DDevice_SetRenderTarget+0x55 : and ecx, 0x0F - { 0x55, 0x83 }, - { 0x56, 0xE1 }, - { 0x57, 0x0F }, - - // D3DDevice_SetRenderTarget+0xDC : push edx - { 0xDC, 0x52 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3948 -// ****************************************************************** -// * D3DDevice_SetRenderTarget -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderTarget, 3948, 8) - - // D3DDevice_SetRenderTarget+0x00 : sub esp, 0x30 - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x30 }, - - // D3DDevice_SetRenderTarget+0x32 : and ecx, 0x0F - { 0x32, 0x83 }, - { 0x33, 0xE1 }, - { 0x34, 0x0F }, - - // D3DDevice_SetRenderTarget+0x69 : push ebx - { 0x69, 0x53 }, - - // D3DDevice_SetRenderTarget+0xDA : push edx - { 0xDA, 0x52 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DSurface_GetDesc -// ****************************************************************** -OOVPA_NO_XREF(D3DSurface_GetDesc, 3925, 16) - // D3DSurface_GetDesc+0x00 : mov eax, [esp+0x08] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x08 }, - - // D3DSurface_GetDesc+0x04 : mov ecx, [esp+0x04] - { 0x04, 0x8B }, - { 0x05, 0x4C }, - { 0x06, 0x24 }, - { 0x07, 0x04 }, - - // D3DSurface_GetDesc+0x08 : push eax - { 0x08, 0x50 }, - - // D3DSurface_GetDesc+0x09 : push 0 - { 0x09, 0x6A }, - { 0x0A, 0x00 }, - - // D3DSurface_GetDesc+0x0B : push ecx - { 0x0B, 0x51 }, - - // D3DSurface_GetDesc+0x0C : call [abs] - { 0x0C, 0xE8 }, - - // D3DSurface_GetDesc+0x11 : retn 0x08 - { 0x11, 0xC2 }, - { 0x12, 0x08 }, - { 0x13, 0x00 }, - -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetTransform -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTransform, 3925, 12) - - // D3DDevice_GetTransform+0x06 : mov esi, [esp+4+arg_0] - { 0x06, 0x8B }, - { 0x07, 0x74 }, - { 0x08, 0x24 }, - - // D3DDevice_GetTransform+0x12 : shl esi, 6; add esi, eax - { 0x12, 0xC1 }, - { 0x13, 0xE6 }, - { 0x14, 0x06 }, - { 0x15, 0x03 }, - { 0x16, 0xF0 }, - - // D3DDevice_GetTransform+0x17 : mov ecx, 0x10 - { 0x17, 0xB9 }, - { 0x18, 0x10 }, - - // D3DDevice_GetTransform+0x20 : retn 0x08 - { 0x20, 0xC2 }, - { 0x21, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetStreamSource -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetStreamSource, 3925, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x23, XREF_G_STREAM ), // Derived - - // D3DDevice_SetStreamSource+0x39 : add edx, 0xFFF80000 - { 0x39, 0x81 }, - { 0x3A, 0xC2 }, - { 0x3B, 0x00 }, - { 0x3C, 0x00 }, - { 0x3D, 0xF8 }, - { 0x3E, 0xFF }, - - // D3DDevice_SetStreamSource+0x49 : jnz +0x06 - { 0x49, 0x75 }, - { 0x4A, 0x06 }, - - // D3DDevice_SetStreamSource+0x6A : or ecx, 0x280 - { 0x6A, 0x81 }, - { 0x6B, 0xC9 }, - { 0x6C, 0x80 }, - { 0x6D, 0x02 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShader, 3925, 14) - // D3DDevice_SetVertexShader+0x05 : test bl, 1 - { 0x05, 0xF6 }, - { 0x06, 0xC3 }, - { 0x07, 0x01 }, - - // D3DDevice_SetVertexShader+0x10 : mov eax, [esi+0x0470] - { 0x10, 0x8B }, - { 0x11, 0x86 }, - { 0x12, 0x70 }, - { 0x13, 0x04 }, - - // D3DDevice_SetVertexShader+0x6D : retn 0x04 - { 0x6D, 0xC2 }, - { 0x6E, 0x04 }, - - // D3DDevice_SetVertexShader+0x8C : mov dword ptr [eax], 0x81E94 - { 0x8C, 0xC7 }, - { 0x8D, 0x40 }, - { 0x8E, 0x08 }, - { 0x8F, 0x94 }, - { 0x90, 0x1E }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreatePixelShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreatePixelShader, 3925, 11) - // D3DDevice_CreatePixelShader+0x00 : push 0xFC - { 0x00, 0x68 }, - { 0x01, 0xFC }, - - // D3DDevice_CreatePixelShader+0x10 : mov eax, 0x8007000E - { 0x10, 0xB8 }, - { 0x11, 0x0E }, - { 0x12, 0x00 }, - { 0x13, 0x07 }, - { 0x14, 0x80 }, - - // D3DDevice_CreatePixelShader+0x31 : mov ecx, 0x3C - { 0x31, 0xB9 }, - { 0x32, 0x3C }, - - // D3DDevice_CreatePixelShader+0x42 : retn 0x08 - { 0x42, 0xC2 }, - { 0x43, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetPixelShader -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPixelShader, 3925, 1+10, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PIXELSHADER ), // Derived - - // D3DDevice_SetPixelShader+0x0E : mov esi, [ebx+0x0414] - { 0x0E, 0x8B }, - { 0x0F, 0xB3 }, - { 0x10, 0x14 }, - { 0x11, 0x04 }, - - // D3DDevice_SetPixelShader+0x34 : or eax, 0x40 - { 0x35, 0xC8 }, - { 0x36, 0x40 }, - - // D3DDevice_SetPixelShader+0x68 : retn 0x04 - { 0x68, 0xC2 }, - { 0x69, 0x04 }, - - // D3DDevice_SetPixelShader+0xE3 : rep movsd - { 0xE3, 0xF3 }, - { 0xE4, 0xA5 }, - -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetIndices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetIndices, 3925, 11) - // D3DDevice_SetIndices+0x0E : jz +0x10 - { 0x0E, 0x74 }, - { 0x0F, 0x10 }, - - // D3DDevice_SetIndices+0x3E : test ecx, 0x78FFFF - { 0x3E, 0xF7 }, - { 0x3F, 0xC1 }, - { 0x40, 0xFF }, - { 0x41, 0xFF }, - { 0x42, 0x78 }, - - // D3DDevice_SetIndices+0x67 : mov [esi+0x047C], edi - { 0x67, 0x89 }, - { 0x68, 0xBE }, - { 0x69, 0x7C }, - { 0x6A, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetViewport, 3925, 10) - // D3DDevice_SetViewport+0x00 : sub esp, 0x08 - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x08 }, - - // D3DDevice_SetViewport+0x2F : mov ebx, [esp+0x1C] - { 0x2F, 0x8B }, - { 0x30, 0x5C }, - { 0x31, 0x24 }, - { 0x32, 0x1C }, - - // D3DDevice_SetViewport+0x55 : jnz +0x12 - { 0x55, 0x75 }, - { 0x56, 0x12 }, - - // D3DDevice_SetViewport+0x9D : inc edx - { 0x9D, 0x42 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetTexture -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTexture, 3925, 12) // Deprecated in favor of 3911 below - // D3DDevice_SetTexture+0x0E : sub esp, 0x08 - { 0x0E, 0x8B }, - { 0x0F, 0x84 }, - { 0x10, 0x9F }, - { 0x11, 0xA0 }, - { 0x12, 0x0B }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - - // D3DDevice_SetTexture+0x57 : shl edx, 6 - { 0x57, 0xC1 }, - { 0x58, 0xE2 }, - { 0x59, 0x06 }, - - // D3DDevice_SetTexture+0x7D : retn 0x08 - { 0x7D, 0xC2 }, - { 0x7E, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetTexture, named with 2 suffix to match EMUPATCH(D3DDevice_GetTexture2) -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetTexture2, 3911, 1+21, // Also for 4361 - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x0E, XREF_OFFSET_D3DDEVICE_M_TEXTURES ), // Derived - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - { 0x0A, 0x56 }, - { 0x0B, 0x8D }, - { 0x0C, 0xB4 }, - { 0x0D, 0x81 }, - - { 0x10, 0x00 }, - { 0x11, 0x00 }, - { 0x12, 0x8B }, - { 0x13, 0x06 }, - { 0x14, 0x85 }, - { 0x15, 0xC0 }, - { 0x16, 0x74 }, - - { 0x18, 0x50 }, - { 0x19, 0xE8 }, - - { 0x1E, 0x8B }, - { 0x1F, 0x16 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetTexture -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetTexture, 3911, 1+28, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x11, XREF_OFFSET_D3DDEVICE_M_TEXTURES ), // Derived - - { 0x00, 0x51 }, - { 0x01, 0x53 }, - { 0x02, 0x8B }, - { 0x03, 0x5C }, - { 0x04, 0x24 }, - { 0x05, 0x0C }, - { 0x06, 0x55 }, - { 0x07, 0x57 }, - { 0x08, 0x8B }, - { 0x09, 0x3D }, - - { 0x0E, 0x8B }, - { 0x0F, 0x84 }, - { 0x10, 0x9F }, - { 0x11, 0xA0 }, - { 0x12, 0x0B }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x85 }, - { 0x16, 0xC0 }, - { 0x17, 0x89 }, - { 0x18, 0x44 }, - { 0x19, 0x24 }, - { 0x1A, 0x0C }, - { 0x1B, 0x74 }, - { 0x1C, 0x20 }, - { 0x1D, 0x8B }, - { 0x1E, 0x4F }, - { 0x1F, 0x1C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DrawRectPatch -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawRectPatch, 3911, 27) // Also verified for 4361, 4627, 5344, 5558, 5659, 5788, 5849, 5933 - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x38 }, - { 0x03, 0xA1 }, - - { 0x08, 0x8B }, - { 0x09, 0x48 }, - // { 0x0A, 0x0C }, // 0x08 for 4361 and up - { 0x0B, 0x53 }, - { 0x0C, 0x55 }, - { 0x0D, 0x56 }, - { 0x0E, 0x57 }, - { 0x0F, 0x8B }, - { 0x10, 0x7C }, - { 0x11, 0x24 }, - { 0x12, 0x50 }, - { 0x13, 0x33 }, - { 0x14, 0xED }, - { 0x15, 0x81 }, - { 0x16, 0xC9 }, - { 0x17, 0x00 }, - { 0x18, 0x08 }, - { 0x19, 0x00 }, - { 0x1A, 0x00 }, - { 0x1B, 0x85 }, - { 0x1C, 0xFF }, - { 0x1D, 0x89 }, - { 0x1E, 0x6C }, - { 0x1F, 0x24 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DrawTriPatch -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawTriPatch, 3911, 27) // Also verified for 4361, 4627, 5344, 5558, 5659, 5788, 5849, 5933 - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x14 }, - { 0x03, 0xA1 }, - - { 0x08, 0x8B }, - { 0x09, 0x48 }, - // { 0x0A, 0x0C }, // 0x08 for 4361 and up - { 0x0B, 0x53 }, - { 0x0C, 0x55 }, - { 0x0D, 0x56 }, - { 0x0E, 0x57 }, - { 0x0F, 0x8B }, - { 0x10, 0x7C }, - { 0x11, 0x24 }, - { 0x12, 0x2C }, - { 0x13, 0x81 }, - { 0x14, 0xC9 }, - { 0x15, 0x00 }, - { 0x16, 0x08 }, - { 0x17, 0x00 }, - { 0x18, 0x00 }, - { 0x19, 0x33 }, - { 0x1A, 0xDB }, - { 0x1B, 0x85 }, - { 0x1C, 0xFF }, - { 0x1D, 0x89 }, - { 0x1E, 0x44 }, - { 0x1F, 0x24 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetTexture, named with 2 suffix to match EMUPATCH(D3DDevice_GetTexture2) -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetTexture2, 3911, 1+21, // Also for 4361 - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x0E, XREF_OFFSET_D3DDEVICE_M_TEXTURES ), // Derived - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - { 0x0A, 0x56 }, - { 0x0B, 0x8D }, - { 0x0C, 0xB4 }, - { 0x0D, 0x81 }, - - { 0x10, 0x00 }, - { 0x11, 0x00 }, - { 0x12, 0x8B }, - { 0x13, 0x06 }, - { 0x14, 0x85 }, - { 0x15, 0xC0 }, - { 0x16, 0x74 }, - - { 0x18, 0x50 }, - { 0x19, 0xE8 }, - - { 0x1E, 0x8B }, - { 0x1F, 0x16 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DrawIndexedVertices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawIndexedVertices, 3925, 12) - // D3DDevice_DrawIndexedVertices+0x0E : mov eax, [esi+0x0478] - { 0x0E, 0x8B }, - { 0x0F, 0x86 }, - { 0x10, 0x78 }, - { 0x11, 0x04 }, - - // D3DDevice_DrawIndexedVertices+0x44 : mov dword ptr [ebx-8], 0x000417FC - { 0x44, 0xC7 }, - { 0x45, 0x43 }, - { 0x46, 0xF8 }, - { 0x47, 0xFC }, - { 0x48, 0x17 }, - { 0x49, 0x04 }, - - // D3DDevice_DrawIndexedVertices+0xDA : lea ebx, [ebx+0] - { 0xDA, 0x8D }, - { 0xDB, 0x9B }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_Begin -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Begin, 3925, 11) - // D3DDevice_Begin+0x20 : mov dword ptr [eax], 0x417FC - { 0x20, 0xC7 }, - { 0x21, 0x00 }, - { 0x22, 0xFC }, - { 0x23, 0x17 }, - { 0x24, 0x04 }, - { 0x25, 0x00 }, - - // D3DDevice_Begin+0x2E : shl edx, 6 - { 0x2E, 0x0D }, - { 0x2F, 0x00 }, - { 0x30, 0x08 }, - - // D3DDevice_Begin+0x38 : retn 0x08 - { 0x38, 0xC2 }, - { 0x39, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexData2f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData2f, 3925, 14) - // D3DDevice_SetVertexData2f+0x11 : lea edx, ds:abs[ecx*8] - { 0x11, 0x8D }, - { 0x12, 0x14 }, - { 0x13, 0xCD }, - - // D3DDevice_SetVertexData2f+0x1C : mov [eax], edx; mov edx, [esp+0x10] - { 0x1C, 0x89 }, - { 0x1D, 0x10 }, - { 0x1E, 0x8B }, - { 0x1F, 0x54 }, - { 0x20, 0x24 }, - { 0x21, 0x10 }, - - // D3DDevice_SetVertexData2f+0x28 : add eax, 0x0C - { 0x28, 0x83 }, - { 0x29, 0xC0 }, - { 0x2A, 0x0C }, - - // D3DDevice_SetVertexData2f+0x2E : retn 0x0C - { 0x2E, 0xC2 }, - { 0x2F, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexData2s -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData2s, 3925, 11) - // D3DDevice_SetVertexData2s+0x11 : lea edx, ds:abs[ecx*4] - { 0x11, 0x8D }, - { 0x12, 0x14 }, - { 0x13, 0x8D }, - - // D3DDevice_SetVertexData2s+0x24 : shl ecx, 0x10 - { 0x24, 0xC1 }, - { 0x25, 0xE1 }, - { 0x26, 0x10 }, - - // D3DDevice_SetVertexData2s+0x29 : mov [eax+4], ecx - { 0x29, 0x89 }, - { 0x2A, 0x48 }, - { 0x2B, 0x04 }, - - // D3DDevice_SetVertexData2s+0x32 : retn 0x0C - { 0x32, 0xC2 }, - { 0x33, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexData4f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4f, 3925, 11) - // D3DDevice_SetVertexData4f+0x11 : cmp ecx, -1; jnz +0x07 - { 0x11, 0x83 }, - { 0x12, 0xF9 }, - { 0x13, 0xFF }, - { 0x14, 0x75 }, - { 0x15, 0x07 }, - - // D3DDevice_SetVertexData4f+0x1D : add ecx, 0x01A0 - { 0x1D, 0x81 }, - { 0x1E, 0xC1 }, - { 0x1F, 0xA0 }, - { 0x20, 0x01 }, - - // D3DDevice_SetVertexData4f+0x50 : retn 0x14 - { 0x50, 0xC2 }, - { 0x51, 0x14 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexDataColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexDataColor, 3925, 18) - - // D3DDevice_SetVertexDataColor+0x00 : push esi - { 0x00, 0x56 }, - - // D3DDevice_SetVertexDataColor+0x1F : mov byte ptr [esp+?] - { 0x1F, 0x0F }, - { 0x20, 0xB6 }, - { 0x21, 0x54 }, - { 0x22, 0x24 }, - { 0x23, 0x12 }, - - // D3DDevice_SetVertexDataColor+0x26 : add edi, 0xFF; shl edi, 0x10 - { 0x26, 0x81 }, - { 0x27, 0xE7 }, - { 0x28, 0xFF }, - { 0x2C, 0xC1 }, - { 0x2D, 0xE7 }, - { 0x2E, 0x10 }, - - // D3DDevice_SetVertexDataColor+0x31 : and ecx, 0xFF00FF00 - { 0x31, 0x81 }, - { 0x32, 0xE1 }, - { 0x33, 0x00 }, - { 0x34, 0xFF }, - { 0x35, 0x00 }, - { 0x36, 0xFF }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_End -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_End, 3925, 12) - // D3DDevice_End+0x17 : mov dword ptr [eax], 0x417FC - { 0x17, 0xC7 }, - { 0x18, 0x00 }, - { 0x19, 0xFC }, - { 0x1A, 0x17 }, - { 0x1B, 0x04 }, - { 0x1C, 0x00 }, - - // D3DDevice_End+0x2C : test ah, 0x10 - { 0x2C, 0xF6 }, - { 0x2D, 0xC4 }, - { 0x2E, 0x10 }, - - // D3DDevice_End+0x2F : jz +0x07 - { 0x2F, 0x74 }, - { 0x30, 0x07 }, - - // D3DDevice_End+0x40 : retn - { 0x40, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_Clear -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Clear, 3925, 10) - // D3DDevice_Clear+0x00 : sub esp, 0x38 - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x38 }, - - // D3DDevice_Clear+0x25 : test cl, 1 - { 0x25, 0xF6 }, - { 0x26, 0xC1 }, - { 0x27, 0x01 }, - - // D3DDevice_Clear+0x5D : mov [esi], eax; xor ebp, ebp - { 0x5D, 0x89 }, - { 0x5E, 0x06 }, - { 0x5F, 0x33 }, - { 0x60, 0xED }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreatePalette -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreatePalette, 3925, 12) - // D3DDevice_CreatePalette+0x01 : push 0x0C - { 0x01, 0x6A }, - { 0x02, 0x0C }, - - // D3DDevice_CreatePalette+0x03 : push 0x40 - { 0x03, 0x6A }, - { 0x04, 0x40 }, - - // D3DDevice_CreatePalette+0x10 : mov eax, 0x8007000E - { 0x10, 0xB8 }, - { 0x11, 0x0E }, - { 0x12, 0x00 }, - { 0x13, 0x07 }, - { 0x14, 0x80 }, - - // D3DDevice_CreatePalette+0x4E : shl esi, 0x1E - { 0x4E, 0xC1 }, - { 0x4F, 0xE6 }, - { 0x50, 0x1E }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetPalette -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPalette, 3925, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PALETTES ), // Derived verified on 3911 - - // D3DDevice_SetPalette+0x0D : mov eax, [edi+esi*4+0x0BB0] - { 0x0D, 0x8B }, - { 0x0E, 0x84 }, - { 0x0F, 0xB7 }, - { 0x10, 0xB0 }, - { 0x11, 0x0B }, - - // D3DDevice_SetPalette+0x68 : add esi, 0x41B20 - { 0x68, 0x81 }, - { 0x69, 0xC6 }, - { 0x6A, 0x20 }, - { 0x6B, 0x1B }, - { 0x6C, 0x04 }, - - // D3DDevice_SetPalette+0x7C : retn 0x08 - { 0x7C, 0xC2 }, - { 0x7D, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreateTexture -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateTexture, 3925, 14) - // D3DDevice_CreateTexture+0x00 : mov eax, [esp+0x1C] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x1C }, - - // D3DDevice_CreateTexture+0x0C : push eax - { 0x0C, 0x50 }, - - // D3DDevice_CreateTexture+0x11 : push 0 - { 0x11, 0x6A }, - { 0x12, 0x00 }, - - // D3DDevice_CreateTexture+0x13 : push 0 - { 0x13, 0x6A }, - { 0x14, 0x00 }, - - // D3DDevice_CreateTexture+0x15 : push ecx - { 0x15, 0x51 }, - - // D3DDevice_CreateTexture+0x22 : push ecx - { 0x22, 0x51 }, - - // D3DDevice_CreateTexture+0x23 : push edx - { 0x23, 0x52 }, - - // D3DDevice_CreateTexture+0x29 : retn 0x1C - { 0x29, 0xC2 }, - { 0x2A, 0x1C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreateVolumeTexture -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateVolumeTexture, 3925, 15) - // D3DDevice_CreateVolumeTexture+0x00 : mov eax, [esp+0x1C] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x20 }, - - // D3DDevice_CreateVolumeTexture+0x0C : push eax - { 0x0C, 0x50 }, - - // D3DDevice_CreateVolumeTexture+0x11 : push 1 - { 0x11, 0x6A }, - { 0x12, 0x01 }, - - // D3DDevice_CreateVolumeTexture+0x13 : push 0 - { 0x13, 0x6A }, - { 0x14, 0x00 }, - - // D3DDevice_CreateVolumeTexture+0x16 : mov ecx, [esp+0x1C] - { 0x16, 0x8B }, - { 0x17, 0x4C }, - { 0x18, 0x24 }, - { 0x19, 0x1C }, - - // D3DDevice_CreateVolumeTexture+0x2C : retn 0x20 - { 0x2C, 0xC2 }, - { 0x2D, 0x20 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreateCubeTexture -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateCubeTexture, 3925, 15) - // D3DDevice_CreateCubeTexture+0x00 : mov eax, [esp+0x1C] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x18 }, - - // D3DDevice_CreateCubeTexture+0x0C : push eax - { 0x0C, 0x50 }, - - // D3DDevice_CreateCubeTexture+0x11 : push 0 - { 0x11, 0x6A }, - { 0x12, 0x00 }, - - // D3DDevice_CreateCubeTexture+0x13 : push 1 - { 0x13, 0x6A }, - { 0x14, 0x01 }, - - // D3DDevice_CreateCubeTexture+0x18 : mov eax, [esp+0x1C] - { 0x18, 0x8B }, - { 0x19, 0x44 }, - { 0x1A, 0x24 }, - { 0x1B, 0x1C }, - - // D3DDevice_CreateCubeTexture+0x25 : retn 0x18 - { 0x25, 0xC2 }, - { 0x26, 0x18 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreateIndexBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateIndexBuffer, 3925, 13) - // D3DDevice_CreateIndexBuffer+0x13 : mov eax, 0x8007000E - { 0x13, 0xB8 }, - { 0x14, 0x0E }, - { 0x15, 0x00 }, - { 0x16, 0x07 }, - { 0x17, 0x80 }, - - // D3DDevice_CreateIndexBuffer+0x18 : retn 0x14 - { 0x18, 0xC2 }, - { 0x19, 0x14 }, - - // D3DDevice_CreateIndexBuffer+0x2E : mov dword ptr [eax], 0x1010001 - { 0x2E, 0xC7 }, - { 0x2F, 0x00 }, - { 0x30, 0x01 }, - { 0x31, 0x00 }, - { 0x32, 0x01 }, - { 0x33, 0x01 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreateVertexShader -// ****************************************************************** -// Based on Dxbx patterns for 3911, 4361, 4627, 5344, 5558, 5659, 5788, 5849, 5933 -OOVPA_NO_XREF(D3DDevice_CreateVertexShader, 3925, 38) - // IDirect3DDevice8_CreateVertexShader+0x00 : push ecx; push ebx; push ebp - { 0x00, 0x51 }, - { 0x01, 0x53 }, - { 0x02, 0x55 }, - - { 0x03, 0x8B }, - { 0x04, 0x6C }, - { 0x05, 0x24 }, - { 0x06, 0x14 }, - { 0x07, 0x85 }, - { 0x08, 0xED }, - { 0x09, 0x56 }, - - // IDirect3DDevice8_CreateVertexShader+0x0A : jz +0x10 - { 0x0A, 0x74 }, - { 0x0B, 0x10 }, - - { 0x0C, 0x0F }, - { 0x0D, 0xB7 }, - { 0x0E, 0x45 }, - { 0x0F, 0x00 }, - { 0x10, 0x0F }, - { 0x11, 0xB7 }, - { 0x12, 0x4D }, - { 0x13, 0x02 }, - { 0x14, 0x89 }, - { 0x15, 0x44 }, - { 0x16, 0x24 }, - { 0x17, 0x0C }, - { 0x18, 0x89 }, - { 0x19, 0x4C }, - { 0x1A, 0x24 }, - { 0x1B, 0x18 }, - { 0x1C, 0x33 }, - { 0x1D, 0xF6 }, - { 0x1E, 0x85 }, - { 0x1F, 0xED }, - - // D3DDevice_CreateVertexShader+0x43 : shl eax, 0x02 - { 0x43, 0xC1 }, - { 0x44, 0xE0 }, - { 0x45, 0x02 }, - - { 0x46, 0x8D }, - { 0x47, 0x1C }, - { 0x48, 0x30 }, -/* - OOVPA_NO_XREF(D3DDevice_CreateVertexShader, 5558) - - // D3DDevice_CreateVertexShader+0x73 : mov eax, 0x8007000E - { 0x65, 0x07 }, - { 0x66, 0x80 }, - - // D3DDevice_CreateVertexShader+0x69 : retn 0x10 - { 0x69, 0xC2 }, - { 0x6A, 0x10 }, -*/ -/* - OOVPA_NO_XREF(D3DDevice_CreateVertexShader, 5788) - - { 0x3E, 0xE8 }, - { 0x5E, 0x75 }, - { 0x7E, 0x04 }, - { 0x9E, 0x24 }, - { 0xBE, 0x24 }, - { 0xDE, 0x83 }, - { 0xFE, 0xC7 }, -*/ -/* - OOVPA_NO_XREF(D3DDevice_CreateVertexShader, 5849) - - { 0x3E, 0xE8 }, - { 0x5E, 0x75 }, - { 0x7E, 0x04 }, - { 0x9E, 0x24 }, - { 0xBE, 0x24 }, - { 0xDE, 0x83 }, - { 0xFE, 0xC7 }, -*/ -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShaderConstant, 3925, 10) - // D3DDevice_SetVertexShaderConstant+0x11 : mov cl, [ebx+0x0C] - { 0x11, 0x8A }, - { 0x12, 0x4B }, - { 0x13, 0x0C }, - - // D3DDevice_SetVertexShaderConstant+0x1A : test cl, 0x10 - { 0x1A, 0xF6 }, - { 0x1B, 0xC1 }, - { 0x1C, 0x10 }, - - // D3DDevice_SetVertexShaderConstant+0x63 : jle +0x19 - { 0x63, 0x7E }, - { 0x64, 0x19 }, - - // D3DDevice_SetVertexShaderConstant+0x9B : retn 0x0C - { 0x9B, 0xC2 }, - { 0x9C, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 3925, 12) - // D3DDevice_SetFlickerFilter+0x0A : mov edx, [ecx+0x2308] - { 0x0A, 0x8B }, - { 0x0B, 0x91 }, - { 0x0C, 0x08 }, - { 0x0D, 0x23 }, - - // D3DDevice_SetFlickerFilter+0x10 : push 0; push eax; push 0x0B; push edx - { 0x10, 0x6A }, - { 0x11, 0x00 }, - { 0x12, 0x50 }, - { 0x13, 0x6A }, - { 0x14, 0x0B }, - { 0x15, 0x52 }, - - // D3DDevice_SetFlickerFilter+0x1C : retn 0x08 - { 0x1C, 0xC2 }, - { 0x1D, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetSoftDisplayFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSoftDisplayFilter, 3925, 12) - // D3DDevice_SetSoftDisplayFilter+0x0A : mov edx, [ecx+0x2308] - { 0x0A, 0x8B }, - { 0x0B, 0x91 }, - { 0x0C, 0x08 }, - { 0x0D, 0x23 }, - - // D3DDevice_SetSoftDisplayFilter+0x10 : push 0; push eax; push 0x0E; push edx - { 0x10, 0x6A }, - { 0x11, 0x00 }, - { 0x12, 0x50 }, - { 0x13, 0x6A }, - { 0x14, 0x0E }, - { 0x15, 0x52 }, - - // D3DDevice_SetSoftDisplayFilter+0x1C : retn 0x08 - { 0x1C, 0xC2 }, - { 0x1D, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetTextureState_TexCoordIndex -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetTextureState_TexCoordIndex, 3925, 1+11, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x11, XREF_D3DTSS_TEXCOORDINDEX ), // Derived - - // D3DDevice_SetTextureState_TexCoordIndex+0x0B : shl eax, 0x07 - { 0x0B, 0xC1 }, - { 0x0C, 0xE0 }, - { 0x0D, 0x07 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0x24 : cmp eax, 0x20000 - { 0x24, 0x81 }, - { 0x25, 0xF9 }, - { 0x28, 0x02 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0x3B : mov edi, 0x8511 - { 0x3B, 0xBF }, - { 0x3C, 0x11 }, - { 0x3D, 0x85 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0x97 : shl eax, cl - { 0x97, 0xD3 }, - { 0x98, 0xE0 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetTextureState_BorderColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTextureState_BorderColor, 3925, 13) - // D3DDevice_SetTextureState_BorderColor+0x13 : shl eax, 0x07 - { 0x13, 0xC1 }, - { 0x14, 0xE2 }, - { 0x15, 0x06 }, - - // D3DDevice_SetTextureState_BorderColor+0x16 : add edx, 0x41B24 - { 0x16, 0x81 }, - { 0x17, 0xC2 }, - { 0x18, 0x24 }, - { 0x19, 0x1B }, - { 0x1A, 0x04 }, - - // D3DDevice_SetTextureState_BorderColor+0x2A : shl ecx, 7 - { 0x2A, 0xC1 }, - { 0x2B, 0xE1 }, - { 0x2C, 0x07 }, - - // D3DDevice_SetTextureState_BorderColor+0x34 : retn 0x08 - { 0x34, 0xC2 }, - { 0x35, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_PSTextureModes -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_PSTextureModes, 3925, 11) - // D3DDevice_SetRenderState_PSTextureModes+0x0C : or edx, 0x400 - { 0x0C, 0x81 }, - { 0x0D, 0xCA }, - { 0x0E, 0x00 }, - { 0x0F, 0x04 }, - - // D3DDevice_SetRenderState_PSTextureModes+0x12 : mov [eax+0x420], ecx - { 0x12, 0x89 }, - { 0x13, 0x88 }, - { 0x14, 0x20 }, - { 0x15, 0x04 }, - { 0x16, 0x00 }, - - // D3DDevice_SetRenderState_PSTextureModes+0x21 : retn 4 - { 0x21, 0xC2 }, - { 0x22, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_StencilFail -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_StencilFail, 3925, 12) - // D3DDevice_SetRenderState_StencilFail+0x19 : mov ecx, 2 - { 0x19, 0xB9 }, - { 0x1A, 0x02 }, - { 0x1B, 0x00 }, - - // D3DDevice_SetRenderState_StencilFail+0x3E : or ecx, 1 - { 0x3E, 0x83 }, - { 0x3F, 0xC9 }, - { 0x40, 0x01 }, - - // D3DDevice_SetRenderState_StencilFail+0x48 : mov dword ptr [eax], 0x00041D84 - { 0x48, 0xC7 }, - { 0x49, 0x00 }, - { 0x4A, 0x84 }, - { 0x4B, 0x1D }, - { 0x4C, 0x04 }, - { 0x4D, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_CullMode -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_CullMode, 3925, 2+15, - - XRefNoSaveIndex, - XRefTwo) - - XREF_ENTRY( 0x03, XREF_D3DDEVICE ), // Derived - - XREF_ENTRY( 0x25, XREF_D3DRS_CULLMODE ), // Derived - - // D3DDevice_SetRenderState_CullMode+0x42 : mov dword ptr [eax+8], 0x4039C - { 0x42, 0xC7 }, - { 0x43, 0x40 }, - { 0x44, 0x08 }, - { 0x45, 0x9C }, - { 0x46, 0x03 }, - { 0x47, 0x04 }, - - // D3DDevice_SetRenderState_CullMode+0x49 : add eax, 0x10 - { 0x49, 0x83 }, - { 0x4A, 0xC0 }, - { 0x4B, 0x10 }, - - // D3DDevice_SetRenderState_CullMode+0x5F : retn 4 - { 0x5F, 0xC2 }, - { 0x60, 0x04 }, - - // D3DDevice_SetRenderState_CullMode+0x4D : add edx, 0x404 - { 0x4D, 0x81 }, - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, - { 0x50, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_Simple -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_Simple, 3925, 13) - // D3DDevice_SetRenderState_Simple+0x05 : add eax, 0x08 - { 0x05, 0x83 }, - { 0x06, 0xC0 }, - { 0x07, 0x08 }, - - // D3DDevice_SetRenderState_Simple+0x0E : jnb +0x0C - { 0x0E, 0x73 }, - { 0x0F, 0x0C }, - - // D3DDevice_SetRenderState_Simple+0x15 : mov [eax-8], ecx - { 0x15, 0x89 }, - { 0x16, 0x48 }, - { 0x17, 0xF8 }, - - // D3DDevice_SetRenderState_Simple+0x18 : mov [eax-4], ecx - { 0x18, 0x89 }, - { 0x19, 0x50 }, - { 0x1A, 0xFC }, - - // D3DDevice_SetRenderState_Simple+0x2B : jmp +0xD3 - { 0x2B, 0xEB }, - { 0x2C, 0xD3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetTransform -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTransform, 3925, 10) - // D3DDevice_SetTransform+0x3A : fld dword ptr [edx+0x28] - { 0x3A, 0xD9 }, - { 0x3B, 0x42 }, - { 0x3C, 0x28 }, - - // D3DDevice_SetTransform+0x47 : test ah, 0x44 - { 0x47, 0xF6 }, - { 0x48, 0xC4 }, - { 0x49, 0x44 }, - - // D3DDevice_SetTransform+0x55 : fnstsw ax - { 0x55, 0xDF }, - { 0x56, 0xE0 }, - - // D3DDevice_SetTransform+0x7A : fdivp st(1), st - { 0x7A, 0xDE }, - { 0x7B, 0xF9 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_FogColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_FogColor, 3925, 11) - // D3DDevice_SetRenderState_FogColor+0x2E : mov dword ptr [eax], 0x402A8 - { 0x2E, 0xC7 }, - { 0x2F, 0x00 }, - { 0x30, 0xA8 }, - { 0x31, 0x02 }, - { 0x32, 0x04 }, - { 0x33, 0x00 }, - - // D3DDevice_SetRenderState_FogColor+0x37 : add eax, 0x08 - { 0x37, 0x83 }, - { 0x38, 0xC0 }, - { 0x39, 0x08 }, - - // D3DDevice_SetRenderState_FogColor+0x44 : retn 0x04 - { 0x44, 0xC2 }, - { 0x45, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_FillMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_FillMode, 3925, 11) - // D3DDevice_SetRenderState_FillMode+0x23 : mov dword ptr [eax], 0x8038C - { 0x23, 0xC7 }, - { 0x24, 0x00 }, - { 0x25, 0x8C }, - { 0x26, 0x03 }, - { 0x27, 0x08 }, - { 0x28, 0x00 }, - - // D3DDevice_SetRenderState_FillMode+0x2F : add eax, 0x0C - { 0x2F, 0x83 }, - { 0x30, 0xC0 }, - { 0x31, 0x0C }, - - // D3DDevice_SetRenderState_FillMode+0x3B : retn 0x04 - { 0x3B, 0xC2 }, - { 0x3C, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_StencilEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_StencilEnable, 3925, 11) - // D3DDevice_SetRenderState_StencilEnable+0x45 : mov dword ptr [eax], 0x41D84 - { 0x45, 0xC7 }, - { 0x46, 0x00 }, - { 0x47, 0x84 }, - { 0x48, 0x1D }, - { 0x49, 0x04 }, - { 0x4A, 0x00 }, - - // D3DDevice_SetRenderState_StencilEnable+0x71 : add eax, 0x08 - { 0x71, 0x83 }, - { 0x72, 0xC0 }, - { 0x73, 0x08 }, - - // D3DDevice_SetRenderState_StencilEnable+0x7D : retn 0x04 - { 0x7D, 0xC2 }, - { 0x7E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_Dxt1NoiseEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_Dxt1NoiseEnable, 3925, 11) - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x0C : mov eax, [esi+0x040C] - { 0x0C, 0x8B }, - { 0x0D, 0x86 }, - { 0x0E, 0x0C }, - { 0x0F, 0x04 }, - { 0x10, 0x00 }, - { 0x11, 0x00 }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x22 : cmp dl, 0x20 - { 0x22, 0x80 }, - { 0x23, 0xFA }, - { 0x24, 0x20 }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x74 : retn 0x04 - { 0x74, 0xC2 }, - { 0x75, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_ZBias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_ZBias, 3925, 10) - // D3DDevice_SetRenderState_ZBias+0x0B : setnz al - { 0x0B, 0x0F }, - { 0x0C, 0x95 }, - { 0x0D, 0xC0 }, - - // D3DDevice_SetRenderState_ZBias+0x14 : fild [esp+0x10] - { 0x14, 0xDB }, - { 0x15, 0x44 }, - { 0x16, 0x24 }, - - // D3DDevice_SetRenderState_ZBias+0x45 : push 0x4E - { 0x45, 0x6A }, - { 0x46, 0x4E }, - - // D3DDevice_SetRenderState_ZBias+0x45 : retn 0x04 - { 0x71, 0xC2 }, - { 0x72, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_ZEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_ZEnable, 3925, 13) - // D3DDevice_SetRenderState_ZEnable+0x13 : jz +0x11 - { 0x13, 0x74 }, - { 0x14, 0x11 }, - - // D3DDevice_SetRenderState_ZEnable+0x15 : mov edx, [esi+0x0410] - { 0x15, 0x8B }, - { 0x16, 0x96 }, - { 0x17, 0x10 }, - { 0x18, 0x04 }, - - // D3DDevice_SetRenderState_ZEnable+0x28 : mov dword ptr [eax], 0x4030 - { 0x28, 0xC7 }, - { 0x29, 0x00 }, - { 0x2A, 0x0C }, - { 0x2B, 0x03 }, - { 0x2C, 0x04 }, - - // D3DDevice_SetRenderState_ZEnable+0x69 : retn 0x04 - { 0x69, 0xC2 }, - { 0x6A, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 3911, 12) // Also for 4034, 4361, 4627, 5344, 5558, 5788, 5849, 5933 - - { 0x00, 0x57 }, - { 0x08, 0x87 }, - { 0x0B, 0x00 }, - { 0x0C, 0x00 }, - { 0x0D, 0x83 }, - { 0x0E, 0xF8 }, - { 0x0F, 0x01 }, - { 0x10, 0x75 }, - { 0x11, 0x1C }, - { 0x12, 0x8B }, - { 0x13, 0xCF }, - { 0x14, 0xE8 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 3925, 11) - // D3DDevice_Release+0x07 : mov eax, [edi+0x0408] - { 0x07, 0x8B }, - { 0x08, 0x87 }, - { 0x09, 0x08 }, - { 0x0A, 0x04 }, - - // D3DDevice_Release+0x0D : cmp eax, 1 - { 0x0D, 0x83 }, - { 0x0E, 0xF8 }, - { 0x0F, 0x01 }, - - // D3DDevice_Release+0x1B : mov ecx, 0x0AE4 - { 0x1B, 0xB9 }, - { 0x1C, 0xE4 }, - { 0x1D, 0x0A }, - - // D3DDevice_Release+0x2E : dec eax - { 0x2E, 0x48 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_Present -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Present, 3925, 10) - // D3DDevice_Present+0x0A : push 2 - { 0x0A, 0x6A }, - { 0x0B, 0x02 }, - - // D3DDevice_Present+0x11 : mov eax, [esi+2518] - { 0x11, 0x8B }, - { 0x12, 0x86 }, - { 0x13, 0x18 }, - { 0x14, 0x25 }, - - // D3DDevice_Present+0xBE : shr ebx, 1 - { 0xBE, 0xD1 }, - { 0xBF, 0xEB }, - - // D3DDevice_Present+0xC0 : xor edi, edi - { 0xC0, 0x33 }, - { 0xC1, 0xFF }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetShaderConstantMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetShaderConstantMode, 3925, 12) - - // D3DDevice_SetShaderConstantMode+0x26 : mov [ebp+0x2140], eax - { 0x26, 0x89 }, - { 0x27, 0x85 }, - { 0x28, 0x40 }, - { 0x29, 0x21 }, - - // D3DDevice_SetShaderConstantMode+0x51 : mov dword ptr [ebx+0x04], 0x3C - { 0x51, 0xC7 }, - { 0x52, 0x43 }, - { 0x53, 0x04 }, - { 0x54, 0x3C }, - - // D3DDevice_SetShaderConstantMode+0xE4 : add ebx, 0x0124 - { 0xE4, 0x81 }, - { 0xE5, 0xC3 }, - { 0xE6, 0x24 }, - { 0xE7, 0x01 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetBackBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackBuffer, 3925, 12) - - // D3DDevice_GetBackBuffer+0x04 : cmp eax, 0xFFFFFFFF - { 0x04, 0x83 }, - { 0x05, 0xF8 }, - { 0x06, 0xFF }, - - // D3DDevice_GetBackBuffer+0x0D : jnz +0x07 - { 0x0D, 0x75 }, - { 0x0E, 0x07 }, - - // D3DDevice_GetBackBuffer+0x1E : lea eax, [ecx+eax*8+0x2150] - { 0x1E, 0x8D }, - { 0x1F, 0x84 }, - { 0x20, 0xC1 }, - { 0x21, 0x50 }, - { 0x22, 0x21 }, - - // D3DDevice_GetBackBuffer+0x31 : retn 0x0C - { 0x31, 0xC2 }, - { 0x32, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetRenderTarget -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetRenderTarget, 3925, 1+9, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x07, XREF_OFFSET_D3DDEVICE_M_RENDERTARGET ), // Derived - - // D3DDevice_GetRenderTarget+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetRenderTarget+0x05 : mov eax, [eax + 0x040C] - { 0x05, 0x8B }, - { 0x06, 0x80 }, - { 0x07, 0x0C }, - { 0x08, 0x04 }, - - // D3DDevice_GetRenderTarget+0x11 : mov [ecx], eax - { 0x11, 0x89 }, - { 0x12, 0x01 }, - - // D3DDevice_GetRenderTarget+0x1D : retn 0x04 - { 0x1D, 0xC2 }, - { 0x1E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetDepthStencilSurface -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetDepthStencilSurface, 3911, 1+18, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x07, XREF_OFFSET_D3DDEVICE_M_DEPTHSTENCIL ), // Derived - - { 0x00, 0xA1 }, - - { 0x05, 0x8B }, - { 0x06, 0x80 }, - - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - { 0x0B, 0x85 }, - { 0x0C, 0xC0 }, - { 0x0D, 0x8B }, - { 0x0E, 0x4C }, - { 0x0F, 0x24 }, - { 0x10, 0x04 }, - { 0x11, 0x89 }, - { 0x12, 0x01 }, - { 0x13, 0x74 }, - { 0x14, 0x0B }, - { 0x15, 0x50 }, - { 0x16, 0xE8 }, - - { 0x1E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetDepthStencilSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDepthStencilSurface, 3925, 10) - - // D3DDevice_GetDepthStencilSurface+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetDepthStencilSurface+0x06 : mov eax, [eax + 0x0410] - { 0x05, 0x8B }, - { 0x06, 0x80 }, - { 0x07, 0x10 }, - { 0x08, 0x04 }, - - // D3DDevice_GetDepthStencilSurface+0x13 : jnz +0x04 - { 0x13, 0x74 }, - { 0x14, 0x0B }, - - // D3DDevice_GetDepthStencilSurface+0x16 : call [addr] - { 0x16, 0xE8 }, - - // D3DDevice_GetDepthStencilSurface+0x25 : retn - { 0x25, 0xC2 }, - { 0x26, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreateVertexBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateVertexBuffer, 3925, 13) - - // D3DDevice_CreateVertexBuffer+0x03 : push 0x40 - { 0x03, 0x6A }, - { 0x04, 0x40 }, - - // D3DDevice_CreateVertexBuffer+0x10 : mov eax, [esp+8] - { 0x10, 0x8B }, - { 0x11, 0x44 }, - { 0x12, 0x24 }, - { 0x13, 0x08 }, - - // D3DDevice_CreateVertexBuffer+0x48 : mov dword ptr [esi], 0x01000001 - { 0x48, 0xC7 }, - { 0x49, 0x06 }, - { 0x4A, 0x01 }, - { 0x4B, 0x00 }, - { 0x4D, 0x01 }, - - // D3DDevice_CreateVertexBuffer+0x53 : retn 0x14 - { 0x53, 0xC2 }, - { 0x54, 0x14 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DVertexBuffer_Lock -// ****************************************************************** -OOVPA_NO_XREF(D3DVertexBuffer_Lock, 3925, 11) - - // D3DVertexBuffer_Lock+0x01 : mov bl, [esp+0x18] - { 0x01, 0x8A }, - { 0x02, 0x5C }, - { 0x03, 0x24 }, - { 0x04, 0x18 }, - - // D3DVertexBuffer_Lock+0x09 : jnz +0x24 - { 0x09, 0x75 }, - { 0x0A, 0x1E }, - - // D3DVertexBuffer_Lock+0x29 : test bl, 0xA0 - { 0x29, 0xF6 }, - { 0x2A, 0xC3 }, - { 0x2B, 0xA0 }, - - // D3DVertexBuffer_Lock+0x4A : retn 0x14 - { 0x4A, 0xC2 }, - { 0x4B, 0x14 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DResource_Register -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_Register, 3925, 19) - - // D3DResource_Register+0x00 : mov ecx, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x4C }, - { 0x03, 0x04 }, - - // D3DResource_Register+0x04 : mov edx, [esp+0x08] - { 0x04, 0x8B }, - { 0x05, 0x54 }, - { 0x07, 0x08 }, - - // D3DResource_Register+0x08 : mov eax, [ecx+0x04] - { 0x08, 0x8B }, - { 0x09, 0x41 }, - { 0x0A, 0x04 }, - - // D3DResource_Register+0x0F : and edx, 0x00070000 - { 0x0F, 0x81 }, - { 0x10, 0xE2 }, - { 0x13, 0x07 }, - - // D3DResource_Register+0x15 : cmp edx, 0x00020000 - { 0x15, 0x81 }, - { 0x16, 0xFA }, - { 0x19, 0x02 }, - - // D3DResource_Register+0x1B : jnz +0x05 - { 0x1B, 0x74 }, - { 0x1C, 0x05 }, - - // D3DResource_Register+0x25 : retn 0x08 - { 0x25, 0xC2 }, - { 0x26, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DResource_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_Release, 3925, 11) -#define D3DResource_Release_4627 D3DResource_Release_3925 - - // D3DResource_Release+0x09 : and ecx, 0xFFFF - { 0x09, 0x81 }, - { 0x0A, 0xE1 }, - { 0x0B, 0xFF }, - { 0x0C, 0xFF }, - - // D3DResource_Release+0x14 : and eax, 0x00070000 - { 0x14, 0x25 }, - { 0x17, 0x07 }, - - // D3DResource_Release+0x19 : cmp eax, 0x00050000 - { 0x19, 0x3D }, - { 0x1C, 0x05 }, - - // D3DResource_Release+0x3E : pop esi - { 0x3E, 0x5E }, - - // D3DResource_Release+0x4B : retn 0x04 - { 0x4B, 0xC2 }, - { 0x4C, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DResource_AddRef -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_AddRef, 3925, 10) - - // D3DResource_AddRef+0x07 : test eax, 0xFFFF - { 0x07, 0xA9 }, - { 0x08, 0xFF }, - { 0x09, 0xFF }, - - // D3DResource_AddRef+0x0E : and eax, 0x00070000 - { 0x0E, 0x25 }, - { 0x11, 0x07 }, - - // D3DResource_AddRef+0x13 : cmp eax, 0x00050000 - { 0x13, 0x3D }, - { 0x16, 0x05 }, - - // D3DResource_AddRef+0x33 : pop esi - { 0x33, 0x5E }, - - // D3DResource_AddRef+0x34 : retn 0x04 - { 0x34, 0xC2 }, - { 0x35, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DResource_IsBusy -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_IsBusy, 3925, 11) - - // D3DResource_IsBusy+0x24 : test eax, 0x780000 - { 0x24, 0xA9 }, - { 0x25, 0x00 }, - { 0x26, 0x00 }, - { 0x27, 0x78 }, - - // D3DResource_IsBusy+0x35 : jnz +0x44 - { 0x35, 0x75 }, - { 0x36, 0x44 }, - - // D3DResource_IsBusy+0x4E : mov eax, [ecx+0x14] - { 0x4E, 0x8B }, - { 0x4F, 0x41 }, - { 0x50, 0x14 }, - - // D3DResource_IsBusy+0x79 : jnb +0x09 - { 0x79, 0x73 }, - { 0x7A, 0x09 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DSurface_LockRect -// ****************************************************************** -OOVPA_NO_XREF(D3DSurface_LockRect, 3925, 16) - - // D3DSurface_LockRect+0x00 : mov eax, [esp+0x10] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x10 }, - - // D3DSurface_LockRect+0x04 : mov ecx, [esp+0x0C] - { 0x04, 0x8B }, - { 0x05, 0x4C }, - { 0x06, 0x24 }, - { 0x07, 0x0C }, - - // D3DSurface_LockRect+0x0C : push eax - { 0x0C, 0x50 }, - - // D3DSurface_LockRect+0x11 : push ecx; push edx; push 0; push 0 - { 0x11, 0x51 }, - { 0x12, 0x52 }, - { 0x13, 0x6A }, - { 0x15, 0x6A }, - - // D3DSurface_LockRect+0x18 : call [abs] - { 0x18, 0xE8 }, - - // D3DSurface_LockRect+0x11 : retn 0x10 - { 0x1D, 0xC2 }, - { 0x1E, 0x10 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DPalette_Lock -// ****************************************************************** -OOVPA_NO_XREF(D3DPalette_Lock, 3925, 13) - - // D3DPalette_Lock+0x00 : test [esp+0x0C], 0xA0 - { 0x00, 0xF6 }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x0C }, - { 0x04, 0xA0 }, - - // D3DPalette_Lock+0x0A : jnz +0x06 - { 0x0A, 0x75 }, - { 0x0B, 0x06 }, - - // D3DPalette_Lock+0x18 : mov ecx, [esp+0x0C] - { 0x18, 0x8B }, - { 0x19, 0x4C }, - { 0x1A, 0x24 }, - { 0x1B, 0x0C }, - - // D3DPalette_Lock+0x1C : mov [ecx], eax - { 0x1C, 0x89 }, - { 0x1D, 0x01 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DTexture_LockRect -// ****************************************************************** -OOVPA_NO_XREF(D3DTexture_LockRect, 3925, 17) - - // D3DTexture_LockRect+0x00 : mov eax, [esp+0x14] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x14 }, - - // D3DTexture_LockRect+0x04 : mov ecx, [esp+0x10] - { 0x04, 0x8B }, - { 0x05, 0x4C }, - { 0x06, 0x24 }, - { 0x07, 0x10 }, - - // D3DTexture_LockRect+0x0C : push eax, push ecx, push edx, push eax, push 0 - { 0x0C, 0x50 }, - { 0x11, 0x51 }, - { 0x16, 0x52 }, - { 0x17, 0x50 }, - { 0x18, 0x6A }, - { 0x19, 0x00 }, - - // D3DTexture_LockRect+0x1B : call [addr] - { 0x1B, 0xE8 }, - - // D3DTexture_LockRect+0x20 : retn 0x14 - { 0x20, 0xC2 }, - { 0x21, 0x14 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DVolumeTexture_LockBox -// ****************************************************************** -OOVPA_NO_XREF(D3DVolumeTexture_LockBox, 3925, 11) - - // D3DVolumeTexture_LockBox+0x08 : test bl, 0x20 - { 0x08, 0xF6 }, - { 0x09, 0xC3 }, - { 0x0A, 0x20 }, - - // D3DVolumeTexture_LockBox+0x40 : test bl, 0x40 - { 0x40, 0xF6 }, - { 0x41, 0xC3 }, - { 0x42, 0x40 }, - - // D3DVolumeTexture_LockBox+0x83 : lea ecx, [eax+edx] - { 0x83, 0x8D }, - { 0x84, 0x0C }, - { 0x85, 0x10 }, - - // D3DVolumeTexture_LockBox+0x99 : retn 0x14 - { 0x99, 0xC2 }, - { 0x9A, 0x14 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DCubeTexture_LockRect -// ****************************************************************** -OOVPA_NO_XREF(D3DCubeTexture_LockRect, 3925, 11) - - // D3DCubeTexture_LockRect+0x06 : test bl, 0x20 - { 0x06, 0xF6 }, - { 0x07, 0xC3 }, - { 0x08, 0x20 }, - - // D3DCubeTexture_LockRect+0x3F : test bl, 0x40 - { 0x3F, 0xF6 }, - { 0x40, 0xC3 }, - { 0x41, 0x40 }, - - // D3DCubeTexture_LockRect+0x71 : shr edx, 0x03 - { 0x71, 0xC1 }, - { 0x72, 0xEA }, - { 0x73, 0x03 }, - - // D3DCubeTexture_LockRect+0x98 : retn 0x18 - { 0x98, 0xC2 }, - { 0x99, 0x18 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DTexture_GetSurfaceLevel -// ****************************************************************** -OOVPA_NO_XREF(D3DTexture_GetSurfaceLevel, 3925, 11) - - // D3DTexture_GetSurfaceLevel+0x08 : lea [esp+0x14] - { 0x08, 0x8D }, - { 0x0B, 0x14 }, - - // D3DTexture_GetSurfaceLevel+0x17 : mov edx, [esp+0x24] - { 0x17, 0x8B }, - { 0x1A, 0x24 }, - - // D3DTexture_GetSurfaceLevel+0x20 : lea ecx, [esp+0x28] - { 0x23, 0x28 }, - - // D3DTexture_GetSurfaceLevel+0x24 : push ecx - { 0x24, 0x51 }, - - // D3DTexture_GetSurfaceLevel+0x25 : push edx - { 0x25, 0x52 }, - - // D3DTexture_GetSurfaceLevel+0x26 : push 0 - { 0x26, 0x6A }, - - // D3DTexture_GetSurfaceLevel+0x43 : call [abs] - { 0x43, 0xE8 }, - - // D3DTexture_GetSurfaceLevel+0x4C : retn 0x0C - { 0x4C, 0xC2 }, - { 0x4D, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * Lock2DSurface -// ****************************************************************** -OOVPA_NO_XREF(Lock2DSurface, 3925, 11) - - { 0x06, 0xF6 }, - { 0x07, 0xC3 }, - { 0x08, 0x20 }, - - { 0x3F, 0xF6 }, - { 0x40, 0xC3 }, - { 0x41, 0x40 }, - - { 0x71, 0xC1 }, - { 0x72, 0xEA }, - { 0x73, 0x03 }, - - { 0x98, 0xC2 }, - { 0x99, 0x18 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 3925, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x56 : cmp eax, [edx+0x2154] - { 0x56, 0x3B }, - { 0x57, 0x82 }, - { 0x58, 0x54 }, - { 0x59, 0x21 }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetVertexShaderSize -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderSize, 3925, 12) - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x08 }, - - { 0x08, 0x8B }, - { 0x09, 0x4C }, - { 0x0A, 0x24 }, - { 0x0B, 0x04 }, - - { 0x0C, 0x8B }, - { 0x0D, 0x51 }, -// { 0x0E, 0x07 }, 0F vs 07 - - { 0x11, 0xC2 }, - { 0x12, 0x08 }, -/* - { 0x01, 0x44 }, - { 0x04, 0x85 }, - { 0x07, 0x09 }, - { 0x0A, 0x24 }, - { 0x0D, 0x51 }, - { 0x10, 0x10 }, - { 0x13, 0x00 },*/ -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetGammaRamp -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetGammaRamp, 3925, 9) - - // D3DDevice_SetGammaRamp+0x11 : and eax, 1; push ebx - { 0x11, 0x83 }, - { 0x12, 0xE0 }, - { 0x13, 0x01 }, - { 0x14, 0x53 }, - - // D3DDevice_SetGammaRamp+0x2F : rep movsd - { 0x2F, 0xF3 }, - { 0x30, 0xA5 }, - - // D3DDevice_SetGammaRamp+0x3E : push ebx; mov ecx, edx - { 0x3E, 0x53 }, - { 0x3F, 0x8B }, - { 0x40, 0xCA }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetMaterial, 3925, 11) - - // D3DDevice_SetMaterial+0x0B : lea edi, [eax+0xB18] - { 0x0B, 0x8D }, - { 0x0C, 0xB8 }, - { 0x0D, 0x18 }, - { 0x0E, 0x0B }, - - // D3DDevice_SetMaterial+0x11 : mov ecx, 0x11 - { 0x11, 0xB9 }, - { 0x12, 0x11 }, - - // D3DDevice_SetMaterial+0x1C : or ecx, 0x20 - { 0x1B, 0x83 }, - { 0x1C, 0xC9 }, - { 0x1D, 0x20 }, - - // D3DDevice_SetMaterial+0x23 : retn 0x04 - { 0x23, 0xC2 }, - { 0x24, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_AddRef -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_AddRef, 3925, 10) - - // D3DDevice_AddRef+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_AddRef+0x05 : mov ecx, [eax+0x0408] - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x08 }, - { 0x08, 0x04 }, - - // D3DDevice_AddRef+0x0B : inc ecx - { 0x0B, 0x41 }, - - // D3DDevice_AddRef+0x05 : mov [eax+0x0408], ecx - { 0x0C, 0x89 }, - { 0x0D, 0x88 }, - { 0x0E, 0x08 }, - { 0x0F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_CMiniport_GetDisplayCapabilities // Was D3DDevice_Unknown1 -// ****************************************************************** -OOVPA_NO_XREF(D3D_CMiniport_GetDisplayCapabilities, 3925, 9) - - // D3D_CMiniport_GetDisplayCapabilities+0x00 : xor eax, eax - { 0x00, 0x33 }, - { 0x01, 0xC0 }, - // D3D_CMiniport_GetDisplayCapabilities+0x13 : call ds:AvSendTVEncoderOption - { 0x13, 0xFF }, - { 0x14, 0x15 }, - { 0x15, 0x10 }, - { 0x16, 0x49 }, - { 0x17, 0x2A }, - { 0x18, 0x00 }, - // D3D_CMiniport_GetDisplayCapabilities+0x1E : retn - { 0x1E, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 3925, 10) - - // D3DDevice_GetViewport+0x05 : push esi; push edi - { 0x05, 0x56 }, - { 0x06, 0x57 }, - - // D3DDevice_GetViewport+0x0B : lea esi, [eax+0x0B00] - { 0x0B, 0x8D }, - { 0x0C, 0xB0 }, - { 0x0D, 0x00 }, - { 0x0E, 0x0B }, - - // D3DDevice_GetViewport+0x11 : mov ecx, 6 - { 0x11, 0xB9 }, - { 0x12, 0x06 }, - - // D3DDevice_GetViewport+0x1A : retn 0x04 - { 0x1A, 0xC2 }, - { 0x1B, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetGammaRamp -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetGammaRamp, 3911, 13) // Up to 5849 - - { 0x05, 0x8B }, - - { 0x0A, 0x00 }, - { 0x0B, 0x56 }, - { 0x0C, 0x8D }, - { 0x0D, 0x0C }, - { 0x0E, 0x49 }, - { 0x0F, 0xC1 }, - { 0x10, 0xE1 }, - { 0x11, 0x08 }, - - { 0x16, 0x0C }, - { 0x1C, 0x00 }, - { 0x22, 0x00 }, - { 0x27, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetGammaRamp -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetGammaRamp, 3925, 7) - - { 0x05, 0x8B }, - { 0x0A, 0x00 }, - { 0x10, 0xE1 }, - { 0x16, 0x0C }, - { 0x1C, 0x00 }, - { 0x22, 0x00 }, - { 0x28, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetDisplayFieldStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayFieldStatus, 3925, 14) - - // D3DDevice_GetDisplayFieldStatus+0x05 : mov edx, [eax+0x2B28] - { 0x05, 0x8B }, - { 0x06, 0x90 }, - { 0x07, 0x28 }, - { 0x08, 0x2B }, - // D3DDevice_GetDisplayFieldStatus+0x12 : test [eax+0x2510], 0x1200000 - { 0x12, 0xF7 }, - { 0x13, 0x80 }, - { 0x14, 0x10 }, - { 0x15, 0x25 }, - // D3DDevice_GetDisplayFieldStatus+0x1E : mov dx, 0x80C0 - { 0x1E, 0x66 }, - { 0x1F, 0xBA }, - { 0x20, 0xC0 }, - { 0x21, 0x80 }, - // D3DDevice_GetDisplayFieldStatus+0x3C : retn 4 - { 0x3C, 0xC2 }, - { 0x3D, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleAntiAlias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleAntiAlias, 3925, 7) - - { 0x0B, 0x8B }, - { 0x1D, 0x8B }, - { 0x26, 0x8B }, - { 0x2C, 0x8B }, - { 0x38, 0x0B }, - { 0x40, 0x89 }, - { 0x49, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_VertexBlend -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_VertexBlend, 3925, 13) - - // D3DDevice_SetRenderState_VertexBlend+0x0A : or ecx, 2 - { 0x0A, 0x83 }, - { 0x0B, 0xC9 }, - { 0x0C, 0x02 }, - - // D3DDevice_SetRenderState_VertexBlend+0x1A : mov dword ptr [eax], 0x40328 - { 0x1A, 0xC7 }, - { 0x1B, 0x00 }, - { 0x1C, 0x28 }, - { 0x1D, 0x03 }, - { 0x1E, 0x04 }, - - // D3DDevice_SetRenderState_VertexBlend+0x23 : add eax, 8 - { 0x23, 0x83 }, - { 0x24, 0xC0 }, - { 0x25, 0x08 }, - - // D3DDevice_SetRenderState_VertexBlend+0x2F : retn 0x04 - { 0x2F, 0xC2 }, - { 0x30, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_BackFillMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_BackFillMode, 3925, 12) - - // D3DDevice_SetRenderState_BackFillMode+0x2B : jnz +0x2 - { 0x2B, 0x75 }, - { 0x2C, 0x02 }, - - // D3DDevice_SetRenderState_BackFillMode+0x32 : mov dword ptr [eax], abs - { 0x32, 0xC7 }, - { 0x33, 0x00 }, - - // D3DDevice_SetRenderState_BackFillMode+0x3B : add eax, 0x0C; mov [edi], eax; pop edi - { 0x3B, 0x83 }, - { 0x3C, 0xC0 }, - { 0x3D, 0x0C }, - { 0x3E, 0x89 }, - { 0x3F, 0x07 }, - { 0x40, 0x5F }, - - // D3DDevice_SetRenderState_BackFillMode+0x48 : retn 0x04 - { 0x48, 0xC2 }, - { 0x49, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_TwoSidedLighting -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TwoSidedLighting, 3925, 13) - - // D3DDevice_SetRenderState_TwoSidedLighting+0x06 : or dword ptr [eax+8], 0x20 - { 0x06, 0x83 }, - { 0x07, 0x48 }, - { 0x08, 0x08 }, - { 0x09, 0x20 }, - - // D3DDevice_SetRenderState_TwoSidedLighting+0x3B : mov dword ptr [eax], 0x8038C - { 0x3B, 0xC7 }, - { 0x3C, 0x00 }, - { 0x3D, 0x8C }, - { 0x3E, 0x03 }, - - // D3DDevice_SetRenderState_TwoSidedLighting+0x44 : add eax, 0x0C - { 0x44, 0x83 }, - { 0x45, 0xC0 }, - { 0x46, 0x0C }, - - // D3DDevice_SetRenderState_TwoSidedLighting+0x51 : retn 0x04 - { 0x51, 0xC2 }, - { 0x52, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_NormalizeNormals -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_NormalizeNormals, 3925, 8) - - // D3DDevice_SetRenderState_NormalizeNormals+0x1D : mov [esi], eax - { 0x1D, 0x89 }, - { 0x1E, 0x06 }, - - // D3DDevice_SetRenderState_NormalizeNormals+0x1F : or dword ptr [esi+8], 2 - { 0x1F, 0x83 }, - { 0x20, 0x4E }, - { 0x21, 0x08 }, - { 0x22, 0x02 }, - - // D3DDevice_SetRenderState_NormalizeNormals+0x2A : retn 0x04 - { 0x2A, 0xC2 }, - { 0x2B, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_FrontFace -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_FrontFace, 3925, 9) - - // D3DDevice_SetRenderState_FrontFace+0x00 : push esi - { 0x00, 0x56 }, - - // D3DDevice_SetRenderState_FrontFace+0x07 : push esi - { 0x07, 0x56 }, - - // D3DDevice_SetRenderState_FrontFace+0xD : mov ecx, [esp+0x08] - { 0x0D, 0x8B }, - { 0x0E, 0x4C }, - { 0x0F, 0x24 }, - { 0x10, 0x08 }, - - // D3DDevice_SetRenderState_FrontFace+0x1A : add eax, 8 - { 0x1A, 0x83 }, - { 0x1B, 0xC0 }, - { 0x1C, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_TextureFactor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TextureFactor, 3925, 10) - - // D3DDevice_SetRenderState_TextureFactor+0x07 : mov eax, [esi+0x0414] - { 0x07, 0x8B }, - { 0x08, 0x86 }, - { 0x09, 0x14 }, - { 0x0A, 0x04 }, - - // D3DDevice_SetRenderState_TextureFactor+0x2E : rep stosd - { 0x2E, 0xF3 }, - { 0x2F, 0xAB }, - - // D3DDevice_SetRenderState_TextureFactor+0x3C : retn 0x04 - { 0x3C, 0xC2 }, - { 0x3D, 0x04 }, - - // D3DDevice_SetRenderState_TextureFactor+0x49 : retn 0x04 - { 0x49, 0xC2 }, - { 0x4A, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_LogicOp -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LogicOp, 3925, 9) - - // D3DDevice_SetRenderState_LogicOp+0x11 : test ecx, ecx - { 0x11, 0x85 }, - { 0x12, 0xC9 }, - - // D3DDevice_SetRenderState_LogicOp+0x2D : mov dword ptr [eax], 0x817BC - { 0x2D, 0xC7 }, - { 0x2E, 0x00 }, - { 0x2F, 0xBC }, - { 0x30, 0x17 }, - { 0x31, 0x08 }, - - // D3DDevice_SetRenderState_LogicOp+0x49 : retn 0x04 - { 0x49, 0xC2 }, - { 0x4A, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_EdgeAntiAlias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_EdgeAntiAlias, 3925, 11) - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x17 : mov [eax+0x04], ecx - { 0x17, 0x89 }, - { 0x18, 0x48 }, - { 0x19, 0x04 }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x1A : mov [eax+0x08], ecx - { 0x1A, 0x89 }, - { 0x1B, 0x48 }, - { 0x1C, 0x08 }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x1D : add eax, 0x0C - { 0x1D, 0x83 }, - { 0x1E, 0xC0 }, - { 0x1F, 0x0C }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x29 : retn 0x04 - { 0x29, 0xC2 }, - { 0x2A, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleMask -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMask, 3925, 13) - - // D3DDevice_SetRenderState_MultiSampleMask+0x0B : mov ecx, esi - { 0x0B, 0x8B }, - { 0x0C, 0xCE }, - - // D3DDevice_SetRenderState_MultiSampleMask+0x32 : and ecx, 0x0F; shl edx, 0x10 - { 0x32, 0x83 }, - { 0x33, 0xE1 }, - { 0x34, 0x0F }, - { 0x35, 0xC1 }, - - // D3DDevice_SetRenderState_MultiSampleMask+0x3A : mov dword ptr [eax], 0x41D7C - { 0x3A, 0xC7 }, - { 0x3B, 0x00 }, - { 0x3C, 0x7C }, - { 0x3D, 0x1D }, - { 0x3E, 0x04 }, - - // D3DDevice_SetRenderState_MultiSampleMask+0x49 : retn 0x04 - { 0x49, 0xC2 }, - { 0x4A, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_PersistDisplay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PersistDisplay, 3925, 14) - - // D3DDevice_PersistDisplay+0x25 : mov eax, [ebx+0x408] - { 0x25, 0x8B }, - { 0x26, 0x83 }, - { 0x27, 0x08 }, - { 0x28, 0x04 }, - { 0x29, 0x00 }, - { 0x2A, 0x00 }, - // D3DDevice_PersistDisplay+0x3A : lea edi, [ebx+0x2308] - { 0x3a, 0x8D }, - { 0x3B, 0xBB }, - { 0x3C, 0x08 }, - { 0x3D, 0x23 }, - { 0x3E, 0x00 }, - { 0x3F, 0x00 }, - // D3DDevice_PersistDisplay+0x70 : shl edx, cl - { 0x70, 0xD3 }, - { 0x71, 0xE2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_ShadowFunc -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_ShadowFunc, 3925, 14) - - // D3DDevice_SetRenderState_ShadowFunc+0x00 : push esi - { 0x00, 0x56 }, - - // D3DDevice_SetRenderState_ShadowFunc+0x11 : mov dword ptr [eax], 0x41E6C - { 0x11, 0xC7 }, - { 0x12, 0x00 }, - { 0x13, 0x6C }, - { 0x14, 0x1E }, - { 0x15, 0x04 }, - { 0x16, 0x00 }, - - // D3DDevice_SetRenderState_ShadowFunc+0x17 : lea edx, [ecx-0x0200] - { 0x17, 0x8D }, - { 0x18, 0x91 }, - { 0x19, 0x00 }, - { 0x1A, 0xFE }, - - // D3DDevice_SetRenderState_ShadowFunc+0x20 : add eax, 0x08 - { 0x20, 0x83 }, - { 0x21, 0xC0 }, - { 0x22, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_LineWidth -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LineWidth, 3925, 10) - - // D3DDevice_SetRenderState_LineWidth+0x15 : fmul dword ptr [esi+0x508] - { 0x15, 0xD8 }, - { 0x16, 0x8E }, - { 0x17, 0x08 }, - { 0x18, 0x05 }, - - // D3DDevice_SetRenderState_LineWidth+0x32 : cmp edi, 0x1FF - { 0x32, 0x81 }, - { 0x33, 0xFF }, - - // D3DDevice_SetRenderState_LineWidth+0x3A : mov edi, 0x1FF - { 0x3A, 0xBF }, - { 0x3B, 0xFF }, - - // D3DDevice_SetRenderState_LineWidth+0x5C : retn 0x04 - { 0x5C, 0xC2 }, - { 0x5D, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_YuvEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_YuvEnable, 3925, 10) - - // D3DDevice_SetRenderState_YuvEnable+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetRenderState_YuvEnable+0x04 : push edi - { 0x04, 0x56 }, - - // D3DDevice_SetRenderState_YuvEnable+0x0B : push edi - { 0x0B, 0x56 }, - - // D3DDevice_SetRenderState_YuvEnable+0x1F : mov [esi], eax - { 0x1F, 0x89 }, - { 0x20, 0x06 }, - - // D3DDevice_SetRenderState_YuvEnable+0x22 : retn 0x04 - { 0x22, 0xC2 }, - { 0x23, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_OcclusionCullEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_OcclusionCullEnable, 3925, 12) - - // D3DDevice_SetRenderState_OcclusionCullEnable+0x20 : jz +0x05 - { 0x20, 0x74 }, - { 0x21, 0x05 }, - - // D3DDevice_SetRenderState_OcclusionCullEnable+0x3B : cmp [abs], 0x1E00 - { 0x3B, 0x81 }, - { 0x41, 0x00 }, - { 0x42, 0x1E }, - - // D3DDevice_SetRenderState_OcclusionCullEnable+0x4A : mov dword ptr [eax], 0x41D84 - { 0x4A, 0xC7 }, - { 0x4B, 0x00 }, - { 0x4C, 0x84 }, - { 0x4D, 0x1D }, - { 0x4E, 0x04 }, - - // D3DDevice_SetRenderState_OcclusionCullEnable+0x59 : retn 0x04 - { 0x59, 0xC2 }, - { 0x5A, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_StencilCullEnable -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_StencilCullEnable, 3925, 1+7, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x0D, XREF_D3DRS_STENCILCULLENABLE ), - - { 0x0B, 0x56 }, - { 0x16, 0x8B }, - { 0x22, 0xB9 }, - { 0x2E, 0xD2 }, - { 0x3A, 0x0C }, - { 0x46, 0x03 }, - { 0x52, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DrawVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVerticesUP, 3925, 8) - - { 0x1F, 0x8B }, - { 0x3E, 0xC0 }, - { 0x5E, 0x03 }, - { 0x7E, 0x07 }, - { 0x9E, 0xF0 }, - { 0xBE, 0x40 }, - { 0xDE, 0x75 }, - { 0xFE, 0x8B }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DrawIndexedVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawIndexedVerticesUP, 3925, 8) - - { 0x1F, 0x8B }, - { 0x3E, 0x8B }, - { 0x5E, 0xF0 }, - { 0x7E, 0x8B }, - { 0xA2, 0x8B }, - { 0xBE, 0x83 }, - { 0xDE, 0x75 }, - { 0xFE, 0x75 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DrawVertices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVertices, 3925, 8) - - { 0x12, 0x8B }, - { 0x27, 0x8B }, - { 0x3A, 0x89 }, - { 0x4E, 0xFF }, - { 0x62, 0x81 }, - { 0x76, 0x00 }, - { 0x8A, 0x17 }, - { 0x9E, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetDisplayMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayMode, 3925, 7) - - { 0x09, 0xB4 }, - { 0x14, 0x8B }, - { 0x1F, 0x10 }, - { 0x2A, 0x1B }, - { 0x35, 0x8B }, - { 0x41, 0x89 }, - { 0x4B, 0x89 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetTextureState_BumpEnv -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTextureState_BumpEnv, 3925, 7) - - { 0x0E, 0x8B }, - { 0x16, 0x8B }, - { 0x22, 0x24 }, - { 0x2E, 0x24 }, - { 0x3A, 0x04 }, - { 0x46, 0x8B }, - { 0x52, 0xB5 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetTextureState_ColorKeyColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTextureState_ColorKeyColor, 3925, 7) - - { 0x07, 0x56 }, - { 0x0D, 0x8B }, - { 0x13, 0x8D }, - { 0x1A, 0x8B }, - { 0x21, 0x83 }, - { 0x28, 0x07 }, - { 0x2F, 0x5E }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexData4s -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4s, 3925, 8) - - { 0x07, 0x56 }, - { 0x10, 0x08 }, - { 0x19, 0xBF }, - { 0x22, 0x24 }, - { 0x2B, 0x54 }, - { 0x34, 0x24 }, - { 0x3D, 0x08 }, - { 0x46, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_SetPushBufferSize -// ****************************************************************** -// Generic OOVPA as of 3911 and newer. -OOVPA_NO_XREF(D3D_SetPushBufferSize, 3911, 13) - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x8B }, - { 0x05, 0x4C }, - { 0x06, 0x24 }, - { 0x07, 0x08 }, - { 0x08, 0xA3 }, - { 0x0D, 0x89 }, - { 0x0E, 0x0D }, - { 0x13, 0xC2 }, - { 0x14, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_SetPushBufferSize -// ****************************************************************** -OOVPA_NO_XREF(D3D_SetPushBufferSize, 3925, 7) - - { 0x01, 0x44 }, - { 0x04, 0x8B }, - { 0x07, 0x08 }, - { 0x0D, 0x89 }, - { 0x0E, 0x0D }, - { 0x13, 0xC2 }, - { 0x14, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DResource_GetType -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_GetType, 3925, 7) - - { 0x13, 0x2A }, - { 0x28, 0x00 }, - { 0x3D, 0x00 }, - { 0x52, 0x74 }, - { 0x67, 0x00 }, - { 0x7C, 0x04 }, - { 0x91, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_AllocContiguousMemory -// ****************************************************************** -OOVPA_NO_XREF(D3D_AllocContiguousMemory, 3925, 6) - - { 0x02, 0x24 }, - { 0x06, 0x24 }, - { 0x0A, 0x04 }, - { 0x0E, 0x6A }, - { 0x16, 0xC2 }, - { 0x17, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_Deferred -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_Deferred, 3925, 9) - - // D3DDevice_SetRenderState_Deferred+0x00 : mov eax, ds:(g_DirtyFromRenderState)-148[ecx*4] - { 0x00, 0x8B }, - { 0x01, 0x04 }, - { 0x02, 0x8D }, - // D3DDevice_SetRenderState_Deferred+0x07 : or dword ptr ds:g_Device+8,eax - { 0x07, 0x09 }, - { 0x08, 0x05 }, - // D3DDevice_SetRenderState_Deferred+0x0D : mov dword ptr ds:D3D__RenderState[ecx*4], edx - { 0x0D, 0x89 }, - { 0x0E, 0x14 }, - { 0x0F, 0x8D }, - // D3DDevice_SetRenderState_Deferred+0x14 : retn - { 0x14, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetLight -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetLight, 3925, 10) -// Based on Dxbx patterns for 3911, 4361, 4627, 5344, 5558, 5659, 5788, 5849, 5933 - - // D3DDevice_GetLight+0x0B : mov esi, [ecx+XXXh] - { 0x0B, 0x8B }, - { 0x0C, 0xB1 }, - { 0x0F, 0x00 }, - { 0x10, 0x00 }, - - // D3DDevice_GetLight+0x12 : mov edi, [esp+8+arg_4] - { 0x12, 0x8B }, - { 0x13, 0x7C }, - { 0x14, 0x24 }, - { 0x15, 0x10 }, - - // D3DDevice_GetLight+0x1F : mov ecx, 1Ah - { 0x1E, 0xB9 }, - { 0x1F, 0x1A }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetLight -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetLight, 3925, 8) - - { 0x1D, 0x0F }, - { 0x3C, 0xD8 }, - { 0x5B, 0x00 }, - { 0x7A, 0x89 }, - { 0x99, 0xA5 }, - { 0xB8, 0xC1 }, - { 0xD7, 0x00 }, - { 0xF6, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_LightEnable -// ****************************************************************** -OOVPA_XREF(D3DDevice_LightEnable, 3911, 2+24,// valid upto at least 4627, next known difference is from 5028 onwards - - XRefNoSaveIndex, - XRefOne) -#define D3DDevice_LightEnable_4361 D3DDevice_LightEnable_3911 -#define D3DDevice_LightEnable_4627 D3DDevice_LightEnable_3911 - - XREF_ENTRY( 0x0B, XREF_D3DDEVICE ), // Derived - XREF_ENTRY( 0x67, XREF_D3DDevice_SetLight ), - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x68 }, - { 0x03, 0x53 }, - - { 0x04, 0x8B }, - { 0x05, 0x5C }, - { 0x06, 0x24 }, - { 0x07, 0x70 }, - { 0x08, 0x56 }, - - { 0x09, 0x8B }, - { 0x0A, 0x35 }, - - { 0x0F, 0x3B }, - { 0x10, 0x9E }, - // { 0x11, 0x84 }, // 94 - // { 0x12, 0x04 }, // 03 - { 0x13, 0x00 }, - - { 0x14, 0x00 }, - { 0x15, 0x73 }, - { 0x16, 0x13 }, - { 0x17, 0x8B }, - { 0x18, 0x8E }, - - // { 0x19, 0x80 }, // 90 - // { 0x1A, 0x04 }, // 03 - { 0x1B, 0x00 }, - { 0x1C, 0x00 }, - { 0x1D, 0x8D }, - { 0x1E, 0x04 }, - { 0x1F, 0xDB }, -/* - { 0x36, 0x00 }, - { 0x52, 0x00 }, - { 0x6E, 0x75 }, - { 0x8A, 0x88 }, - { 0xA6, 0x75 }, - { 0xC2, 0x00 }, -*/ -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetLightEnable -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetLightEnable, 3911, 1+24, // valid upto at least 5233, next known difference is from 5344 onwards - - XRefNoSaveIndex, - XRefOne) -#define D3DDevice_GetLightEnable_4361 D3DDevice_GetLightEnable_3911 -#define D3DDevice_GetLightEnable_4627 D3DDevice_GetLightEnable_3911 - - XREF_ENTRY( 0x05, XREF_D3DDEVICE ), // Derived - - { 0x00, 0x8B }, - { 0x01, 0x4C }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - { 0x04, 0xA1 }, - { 0x09, 0x8B }, - { 0x0A, 0x90 }, - // 0x0B, 0x80 }, // 0x8004 vs 4134 0x9003 - // 0x0C, 0x04 }, - - { 0x0D, 0x00 }, - { 0x0E, 0x00 }, - { 0x0F, 0x8B }, - { 0x10, 0x80 }, - // 0x11, 0x88 }, // 0x8804 vs 4134 0x9803 - - // 0x12, 0x04 }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x8D }, - { 0x16, 0x0C }, - - { 0x17, 0xC9 }, - { 0x18, 0xC1 }, - { 0x19, 0xE1 }, - { 0x1A, 0x04 }, - { 0x1B, 0x03 }, - - { 0x1C, 0xCA }, - { 0x1D, 0x85 }, - { 0x1E, 0xC0 }, - { 0x1F, 0x74 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetProjectionViewportMatrix -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetProjectionViewportMatrix, 3925, 7) - - { 0x02, 0x35 }, - { 0x07, 0x57 }, - { 0x0A, 0x24 }, - { 0x0E, 0xA0 }, - { 0x12, 0xB9 }, - { 0x16, 0x00 }, - { 0x1A, 0x5E }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 3925, 7) - - { 0x03, 0x04 }, - { 0x0A, 0x56 }, - { 0x0D, 0x7C }, - { 0x12, 0x40 }, - { 0x17, 0x21 }, - { 0x1C, 0x00 }, - { 0x21, 0x5F }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_ApplyStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_ApplyStateBlock, 3925, 8) - - { 0x1D, 0x83 }, - { 0x40, 0x83 }, - { 0x5B, 0x16 }, - { 0x7A, 0x01 }, - { 0x99, 0x46 }, - { 0xB8, 0x06 }, - { 0xD7, 0x39 }, - { 0xF6, 0x51 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CaptureStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CaptureStateBlock, 3925, 7) - - { 0x1E, 0x76 }, - { 0x3E, 0xE8 }, - { 0x5E, 0x06 }, - { 0x7E, 0x26 }, - { 0x9E, 0xFF }, - { 0xBE, 0x04 }, - { 0xDE, 0xF8 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DeleteStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DeleteStateBlock, 3925, 7) - - { 0x11, 0x76 }, - { 0x24, 0x3B }, - { 0x37, 0xE8 }, - { 0x4A, 0x50 }, - { 0x5D, 0x74 }, - { 0x70, 0x06 }, - { 0x83, 0xEB }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackMaterial, 3925, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - { 0x0D, 0x5C }, - { 0x0E, 0x0B }, - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreateStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateStateBlock, 3925, 8) - - { 0x1E, 0x8B }, - { 0x3E, 0x89 }, - { 0x5E, 0x24 }, - { 0x7E, 0xF8 }, - { 0x9F, 0x01 }, - { 0xBE, 0xB6 }, - { 0xDE, 0xF8 }, - { 0xFE, 0x76 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DeletePixelShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DeletePixelShader, 3925, 7) - - { 0x02, 0x24 }, - { 0x06, 0x75 }, - { 0x0A, 0x04 }, - { 0x0E, 0x09 }, - { 0x12, 0x04 }, - { 0x18, 0xC2 }, - { 0x1A, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetPixelShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderProgram, 3925, 7) - - { 0x06, 0xA1 }, - { 0x0E, 0x88 }, - { 0x16, 0x00 }, - { 0x1E, 0x00 }, - { 0x26, 0x04 }, - { 0x32, 0xC7 }, - { 0x36, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_KickOffAndWaitForIdle -// ****************************************************************** -// * This is for the real D3D::KickOffAndWaitForIdle -// ****************************************************************** -OOVPA_XREF(D3D_KickOffAndWaitForIdle, 3925, 5, - - XREF_D3D_KickOffAndWaitForIdle, - XRefZero) - - { 0x05, 0x8B }, - { 0x06, 0x48 }, - { 0x07, 0x1C }, - { 0x0A, 0x51 }, - { 0x10, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetModelView -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetModelView, 3925, 7) - - { 0x12, 0x08 }, - { 0x26, 0x53 }, - { 0x3A, 0x8B }, - { 0x4E, 0x80 }, - { 0x62, 0x00 }, - { 0x76, 0x00 }, - { 0x8A, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_FlushVertexCache -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_FlushVertexCache, 3925, 8) - - { 0x00, 0x56 }, - { 0x07, 0x56 }, - { 0x08, 0xE8 }, - { 0x0D, 0xC7 }, - { 0x0F, 0x10 }, - { 0x12, 0x00 }, - { 0x17, 0x00 }, - { 0x1C, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetScissors -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScissors, 3925, 8) - - { 0x1D, 0x08 }, - { 0x3C, 0x24 }, - { 0x5F, 0x8B }, - { 0x7A, 0x83 }, - { 0x99, 0xE0 }, - { 0xBA, 0xD9 }, - { 0xD9, 0x8B }, - { 0xF6, 0xDB }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexShaderInput -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShaderInput, 3925, 8) - - { 0x1E, 0x03 }, - { 0x3E, 0x8B }, - { 0x5E, 0xC7 }, - { 0x7E, 0xF8 }, - { 0x9E, 0xC6 }, - { 0xBE, 0x7F }, - { 0xDE, 0xCA }, - { 0xFE, 0x17 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_PrimeVertexCache -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PrimeVertexCache, 3925, 8) - - { 0x0D, 0x00 }, - { 0x1C, 0x55 }, - { 0x2B, 0x00 }, - { 0x3A, 0x24 }, - { 0x49, 0xCB }, - { 0x58, 0x74 }, - { 0x67, 0x00 }, - { 0x76, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetVertexData4ub -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4ub, 3925, 7) - - { 0x07, 0x56 }, - { 0x10, 0x08 }, - { 0x19, 0xC9 }, - { 0x22, 0x54 }, - { 0x2B, 0x14 }, - { 0x34, 0x24 }, - { 0x3D, 0xFC }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetPixelShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderConstant, 3925, 7) - - { 0x1E, 0x4C }, - { 0x3E, 0x11 }, - { 0x61, 0xDF }, - { 0x7E, 0xF6 }, - { 0x9E, 0x05 }, - { 0xC0, 0x51 }, - { 0xDE, 0xC4 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_InsertCallback -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_InsertCallback, 3925, 7) - - { 0x0D, 0x8B }, - { 0x18, 0x8B }, - { 0x25, 0x50 }, - { 0x32, 0x10 }, - { 0x3F, 0x00 }, - { 0x4C, 0x00 }, - { 0x59, 0x03 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_BeginPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginPushBuffer, 3925, 7) - - { 0x0B, 0xCE }, - { 0x1B, 0x57 }, - { 0x25, 0x00 }, - { 0x32, 0x06 }, - { 0x3F, 0x03 }, - { 0x4C, 0x04 }, - { 0x59, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_EndPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 3925, 7) - - { 0x11, 0x8D }, - { 0x24, 0x8B }, - { 0x37, 0xFC }, - { 0x4A, 0xFF }, - { 0x5D, 0xF7 }, - { 0x70, 0x03 }, - { 0x83, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_RopZCmpAlwaysRead -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_RopZCmpAlwaysRead, 3925, 1+8, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_SetRenderState_RopZCmpAlwaysRead+0x05 : D3D__RenderState[D3DRS_ROPZCMPALWAYSREAD] - XREF_ENTRY( 0x05, XREF_D3DRS_ROPZCMPALWAYSREAD ), - - // D3DDevice_SetRenderState_RopZCmpAlwaysRead+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetRenderState_RopZCmpAlwaysRead+0x09 : call [abs] - { 0x09, 0xE8 }, - - // D3DDevice_SetRenderState_RopZCmpAlwaysRead+0x0E : retn 0x04 - { 0x0E, 0xC2 }, - { 0x0F, 0x04 }, - { 0x10, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_RopZRead -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_RopZRead, 3925, 1+8, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_SetRenderState_RopZRead+0x05 : D3D__RenderState[D3DRS_ROPZREAD] - XREF_ENTRY( 0x05, XREF_D3DRS_ROPZREAD ), - - // D3DDevice_SetRenderState_RopZRead+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetRenderState_RopZRead+0x09 : call [abs] - { 0x09, 0xE8 }, - - // D3DDevice_SetRenderState_RopZRead+0x0E : retn 0x04 - { 0x0E, 0xC2 }, - { 0x0F, 0x04 }, - { 0x10, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetRenderState_DoNotCullUncompressed -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_DoNotCullUncompressed, 3925, 1+8, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_SetRenderState_DoNotCullUncompressed+0x05 : D3D__RenderState[D3DRS_DONOTCULLUNCOMPRESSED] - XREF_ENTRY( 0x05, XREF_D3DRS_DONOTCULLUNCOMPRESSED ), - - // D3DDevice_SetRenderState_DoNotCullUncompressed+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetRenderState_DoNotCullUncompressed+0x09 : call [abs] - { 0x09, 0xE8 }, - - // D3DDevice_SetRenderState_DoNotCullUncompressed+0x0E : retn 0x04 - { 0x0E, 0xC2 }, - { 0x0F, 0x04 }, - { 0x10, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * XMETAL_StartPush -// ****************************************************************** -OOVPA_NO_XREF(XMETAL_StartPush, 3925, 11) - - // XMETAL_StartPush+0x00 : mov ecx, [esp+0x4] - { 0x00, 0x8B }, - { 0x01, 0x4C }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // XMETAL_StartPush+0x04 : mov eax, [ecx] - { 0x04, 0x8B }, - { 0x05, 0x01 }, - - // XMETAL_StartPush+0x06 : cmp eax, [ecx+0x4] - { 0x06, 0x3B }, - { 0x07, 0x41 }, - { 0x08, 0x04 }, - - // XMETAL_StartPush+0x10 : retn 4 - { 0x10, 0xC2 }, - { 0x11, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D::SetFence -// ****************************************************************** -OOVPA_XREF(D3D_SetFence, 3925, 11, - - XREF_D3D_SetFence, - XRefZero) - - // D3D::SetFence+0x0F : mov edi, [esi+0x1C] - { 0x0F, 0x8B }, - { 0x10, 0x7E }, - { 0x11, 0x1C }, - - // D3D::SetFence+0x3D : and ecx, 0x3F - { 0x3D, 0x83 }, - { 0x3E, 0xE1 }, - { 0x3F, 0x3F }, - - // D3D::SetFence+0x77 : mov [esi*ebp*4], edi - { 0x77, 0x89 }, - { 0x78, 0x3C }, - { 0x79, 0xAE }, - - // D3D::SetFence+0x96 : retn 4 - { 0x96, 0xC2 }, - { 0x97, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_InsertFence -// ****************************************************************** -OOVPA_XREF(D3DDevice_InsertFence, 3925, 1+4, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x03, XREF_D3D_SetFence ), - - { 0x00, 0x6A }, - { 0x01, 0x00 }, - { 0x02, 0xE8 }, - { 0x07, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_LoadVertexShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LoadVertexShaderProgram, 3925, 7) - - { 0x0B, 0x2D }, - { 0x18, 0x10 }, - { 0x25, 0x00 }, - { 0x32, 0xA5 }, - { 0x3F, 0x8B }, - { 0x4C, 0x00 }, - { 0x59, 0xE8 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_DeleteVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DeleteVertexShader, 3925, 6) - - { 0x02, 0x24 }, - { 0x06, 0xFF }, - { 0x0A, 0x08 }, - { 0x0E, 0x44 }, - - // D3DDevice_DeleteVertexShader+0x16 : retn 4 - { 0x16, 0xC2 }, - { 0x17, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_RunPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_RunPushBuffer, 3925, 15) - - // D3DDevice_RunPushBuffer+0x5E : and ecx, 4 - { 0x5E, 0x83 }, - { 0x5F, 0xE1 }, - { 0x60, 0x04 }, - - // D3DDevice_RunPushBuffer+0x95 : push 0x308 - { 0x95, 0x68 }, - { 0x96, 0x08 }, - { 0x97, 0x03 }, - { 0x98, 0x00 }, - { 0x99, 0x00 }, - - // D3DDevice_RunPushBuffer+0xF1 : mov dword ptr [eax+8], 0x40100 - { 0xF1, 0xC7 }, - { 0xF2, 0x40 }, - { 0xF3, 0x08 }, - { 0xF4, 0x00 }, - { 0xF5, 0x01 }, - { 0xF6, 0x04 }, - { 0xF7, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_BlockOnFence -// ****************************************************************** -OOVPA_XREF(D3DDevice_BlockOnFence, 3925, 1+7, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x08, XREF_D3D_BlockOnTime ), - - { 0x00, 0x8B }, - { 0x02, 0x24 }, - { 0x04, 0x6A }, - { 0x06, 0x50 }, - { 0x0C, 0xC2 }, - { 0x0D, 0x04 }, - { 0x0E, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_EnumAdapterModes -// ****************************************************************** -OOVPA_NO_XREF(D3D_EnumAdapterModes, 3925, 8) - - { 0x20, 0x8B }, - { 0x3E, 0xE3 }, - { 0x5E, 0x75 }, - { 0x7E, 0x00 }, - { 0x9E, 0x00 }, - { 0xBE, 0x0F }, - { 0xE2, 0x89 }, - { 0xFE, 0x5D }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_GetAdapterModeCount -// ****************************************************************** -OOVPA_NO_XREF(D3D_GetAdapterModeCount, 3925, 8) - - { 0x14, 0x8B }, - { 0x26, 0xE2 }, - { 0x3A, 0x00 }, - { 0x4E, 0x00 }, - { 0x62, 0x19 }, - { 0x76, 0x75 }, - { 0x8A, 0x3B }, - { 0x9E, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_Reset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Reset, 3925, 7) - - { 0x15, 0x8B }, - { 0x2C, 0x8B }, - { 0x43, 0x8B }, - { 0x5A, 0x08 }, - { 0x74, 0x8B }, - { 0x88, 0x50 }, - { 0x9F, 0x03 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_GetAdapterIdentifier -// ****************************************************************** -OOVPA_NO_XREF(D3D_GetAdapterIdentifier, 3925, 7) - - { 0x04, 0x85 }, - { 0x0A, 0x08 }, - { 0x10, 0x56 }, - { 0x16, 0xB9 }, - { 0x20, 0xF3 }, - { 0x22, 0x5F }, - { 0x28, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_GetDeviceCaps -// ****************************************************************** -OOVPA_NO_XREF(D3D_GetDeviceCaps, 3925, 7) - - { 0x04, 0x85 }, - { 0x0A, 0x08 }, - { 0x10, 0x83 }, - { 0x16, 0x08 }, - { 0x1C, 0xC2 }, - { 0x22, 0x0C }, - { 0x29, 0x33 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D::SetCommonDebugRegisters -// ****************************************************************** -OOVPA_NO_XREF(D3D_SetCommonDebugRegisters, 3925, 10) - - { 0x07, 0x8B }, - { 0x08, 0x96 }, - { 0x09, 0x44 }, - { 0x0A, 0x2B }, - { 0x31, 0x81 }, - { 0x32, 0xE2 }, - { 0x33, 0xFF }, - { 0x34, 0xFF }, - { 0x35, 0xEF }, - { 0x36, 0xE7 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CreateImageSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateImageSurface, 3925, 7) - - { 0x02, 0x24 }, - { 0x06, 0x24 }, - { 0x0A, 0x24 }, - { 0x0E, 0x44 }, - { 0x12, 0x00 }, - { 0x16, 0xE8 }, - { 0x1B, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D::BlockOnTime -// ****************************************************************** -OOVPA_XREF(D3D_BlockOnTime, 3925, 10, - - XREF_D3D_BlockOnTime, - XRefZero) - - // D3D::BlockOnFence+0x00 : push ebp - { 0x00, 0x55 }, - - // D3D::BlockOnFence+0x0A : push edi - { 0x0A, 0x57 }, - - // D3D::BlockOnFence+0x4E : cmp eax, 0x8000 - { 0x4E, 0x3D }, - { 0x4F, 0x00 }, - { 0x50, 0x80 }, - { 0x51, 0x00 }, - - // D3D::BlockOnFence+0x6E : mov ebp, 0x40100 - { 0x6E, 0xBD }, - { 0x6F, 0x00 }, - { 0x70, 0x01 }, - { 0x71, 0x04 } -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D::BlockOnResource -// ****************************************************************** -OOVPA_XREF(D3D_BlockOnResource, 3925, 9, - - XREF_D3D_BlockOnResource, - XRefZero) - - { 0x34, 0x8B }, // mov edx, [ecx+0x1C] - { 0x35, 0x51 }, - { 0x36, 0x1C }, - { 0x41, 0xC2 }, // retn 4 - { 0x42, 0x04 }, - { 0x43, 0x00 }, - { 0x7E, 0xC2 }, // retn 4 - { 0x7F, 0x04 }, - { 0x80, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DResource_BlockUntilNotBusy -// ****************************************************************** -OOVPA_XREF(D3DResource_BlockUntilNotBusy, 3925, 1+1, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x01, XREF_D3D_BlockOnResource ), - - { 0x00, 0xE9 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_ClearStateBlockFlags -// ****************************************************************** -OOVPA_XREF(D3D_ClearStateBlockFlags, 3911, 13, - - XREF_D3D_ClearStateBlockFlags, - XRefZero) - - { 0x01, 0x15 }, - { 0x07, 0x57 }, - { 0x0F, 0xBF }, - { 0x14, 0xF3 }, - { 0x15, 0xAB }, - { 0x16, 0x8B }, - { 0x17, 0x8A }, -// { 0x18, 0x84 }, -// { 0x19, 0x04 }, - { 0x1A, 0x00 }, - { 0x1B, 0x00 }, - { 0x1C, 0x33 }, - { 0x1D, 0xF6 }, - { 0x1E, 0x8D }, - { 0x1F, 0x82 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_BeginStateBlock -// ****************************************************************** -OOVPA_XREF(D3DDevice_BeginStateBlock, 3911, 1+6, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_BeginStateBlock+0x0F : call [ClearStateBlockFlags] - XREF_ENTRY( 0x0A, XREF_D3D_ClearStateBlockFlags ), - - // D3DDevice_BeginStateBlock+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_BeginStateBlock+0x05 : mov [eax+C], 0x20 - { 0x05, 0x83 }, - { 0x06, 0x48 }, - { 0x07, 0x0C },//0C VS 08 - { 0x08, 0x20 }, - { 0x09, 0xE9 }, -OOVPA_END; -#endif - -#if 0 // Use XREF -// ****************************************************************** -// * D3DDevice_BeginStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginStateBlock, 3925, 6) - - { 0x00, 0xA1 }, - { 0x05, 0x83 }, - { 0x06, 0x48 }, - { 0x07, 0x0C }, - { 0x08, 0x20 }, - { 0x09, 0xE9 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_RecordStateBlock -// ****************************************************************** -OOVPA_XREF(D3D_RecordStateBlock, 3911, 19, - - XREF_D3D_RecordStateBlock, - XRefZero) - - { 0x00, 0x55 }, - { 0x01, 0x8B }, - { 0x02, 0xEC }, - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x18 }, - { 0x06, 0x53 }, - { 0x07, 0x56 }, - - { 0x0F, 0x8B }, - { 0x1F, 0x89 }, - - { 0x37, 0x89 }, - { 0x38, 0x45 }, - { 0x39, 0xEC }, - { 0x3A, 0x8A }, - { 0x3B, 0x02 }, - { 0x3C, 0x42 }, - { 0x3D, 0x84 }, - { 0x3E, 0xC0 }, - { 0x5C, 0xE8 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_EndStateBlock -// ****************************************************************** -OOVPA_XREF(D3DDevice_EndStateBlock, 3911, 1+5, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_EndStateBlock+0x0F : call [ClearStateBlockFlags] - XREF_ENTRY( 0x0A, XREF_D3D_RecordStateBlock ), - - // D3DDevice_EndStateBlock+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_EndStateBlock+0x05 : and [eax+0C], 0xFFFFFFDF - { 0x05, 0x83 }, - { 0x06, 0x60 }, - { 0x07, 0x0C }, - { 0x08, 0xDF }, -OOVPA_END; -#endif - -#if 0 // Used 3911 -// ****************************************************************** -// * D3DDevice_EndStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndStateBlock, 3925, 6) - - { 0x00, 0xA1 }, - { 0x05, 0x83 }, - { 0x06, 0x60 }, - { 0x07, 0x0C }, - { 0x08, 0xDF }, - { 0x09, 0xE9 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTile, 3925, 9) - - // D3DDevice_SetTile+0x06 : sub esp, 0x18 - { 0x06, 0x83 }, - { 0x07, 0xEC }, - { 0x08, 0x18 }, - - // D3DDevice_SetTile+0x15 : cmp [esi+4], eax - { 0x15, 0x39 }, - { 0x16, 0x46 }, - { 0x17, 0x04 }, - - // D3DDevice_SetTile+0x7E : lea edi, [edx+ecx*8+21BCh] - { 0x7E, 0x83 }, - { 0x7F, 0xC4 }, - { 0x80, 0x18 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackMaterial, 3925, 9) - - { 0x0A, 0x57 }, - { 0x0B, 0x8D }, - { 0x0C, 0xB8 }, - { 0x0D, 0x5C }, - { 0x0E, 0x0B }, - { 0x0F, 0x00 }, - { 0x14, 0x00 }, - { 0x18, 0x8B }, - { 0x1E, 0x5F }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_SwitchTexture -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SwitchTexture, 3925, 10) - - // D3DDevice_SwitchTexture+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_SwitchTexture+0x05 : add eax, 0x0C - { 0x05, 0x83 }, - { 0x06, 0xC0 }, - { 0x07, 0x0C }, - - // D3DDevice_SwitchTexture+0x08 : cmp eax, ds:dword_XXXXX - { 0x08, 0x3B }, - { 0x09, 0x05 }, - - // D3DDevice_SwitchTexture+0x0E : jnb +0x15 - { 0x0E, 0x73 }, - { 0x0F, 0x15 }, - - // D3DDevice_SwitchTexture+0x22 : retn 0x04 - { 0x22, 0xC2 }, - { 0x23, 0x04 }, - -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetModelView -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetModelView, 3925, 10) - - { 0x05, 0x57 }, - { 0x0A, 0x85 }, - { 0x10, 0xB0 }, - { 0x11, 0xE0 }, - { 0x12, 0x05 }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0xB9 }, - { 0x16, 0x10 }, - { 0x1C, 0x5E }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_CopyRects -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CopyRects, 3925, 9) - - { 0x10, 0x0F }, - { 0x11, 0xB6 }, - { 0x12, 0x75 }, - { 0x13, 0x0D }, - { 0x14, 0x8A }, - { 0x15, 0x9E }, - { 0x40, 0xF6 }, - { 0x4F, 0x84 }, - { 0x75, 0x15 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DVertexBuffer_GetDesc -// ****************************************************************** -OOVPA_NO_XREF(D3DVertexBuffer_GetDesc, 3925, 7) - - { 0x02, 0x24 }, - { 0x06, 0x74 }, - { 0x0A, 0xC7 }, - { 0x0E, 0x00 }, - { 0x15, 0x89 }, - { 0x16, 0x46 }, - { 0x1A, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetShaderConstantMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetShaderConstantMode, 3925, 8) - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x40 }, - { 0x08, 0x21 }, - { 0x0B, 0x8B }, - { 0x0D, 0x24 }, - { 0x10, 0x0A }, - { 0x13, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShader, 3925, 7) - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x74 }, - { 0x0A, 0x00 }, - { 0x0D, 0x24 }, - { 0x10, 0x0A }, - { 0x13, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetVertexShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderConstant, 3925, 9) - - { 0x05, 0x8B }, - { 0x06, 0x74 }, - { 0x07, 0x24 }, - { 0x08, 0x08 }, - { 0x09, 0x57 }, - { 0x0A, 0x8B }, - { 0x0B, 0x3D }, - { 0x18, 0x00 }, - { 0x1F, 0xF7 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetVertexShaderInput -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderInput, 3925, 8) - - { 0x00, 0x8B }, - { 0x03, 0x08 }, - { 0x04, 0x85 }, - { 0x05, 0xC9 }, - { 0x06, 0xA1 }, - { 0x10, 0x07 }, - { 0x18, 0x04 }, - { 0x1F, 0x20 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_RunVertexStateShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_RunVertexStateShader, 3925, 9) - - { 0x0D, 0x8B }, - { 0x10, 0x0C }, - { 0x11, 0x85 }, - { 0x12, 0xC9 }, - { 0x13, 0x74 }, - { 0x14, 0x21 }, - { 0x15, 0xD9 }, - { 0x16, 0x41 }, - { 0x1F, 0x41 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetVertexShaderType -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderType, 3925, 7) - - { 0x04, 0x8B }, - { 0x0A, 0x07 }, - { 0x10, 0xEB }, - { 0x16, 0x00 }, - { 0x1C, 0x40 }, - { 0x22, 0xC9 }, - { 0x28, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetVertexShaderDeclaration -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderDeclaration, 3925, 9) - - { 0x00F, 0x8B }, - { 0x010, 0x4C }, - { 0x011, 0x24 }, - { 0x012, 0x1C }, - { 0x013, 0xC7 }, - { 0x014, 0x01 }, - { 0x015, 0x00 }, - { 0x11F, 0x83 }, - { 0x129, 0x0F }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetVertexShaderFunction -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderFunction, 3925, 7) - - { 0x16, 0xC0 }, - { 0x2E, 0x01 }, - { 0x46, 0x10 }, - { 0x5E, 0x07 }, - { 0x76, 0xC7 }, - { 0x8E, 0x00 }, - { 0xA6, 0xF8 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetPixelShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetPixelShader, 3925, 7) - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x14 }, - { 0x0A, 0x00 }, - { 0x0D, 0x24 }, - { 0x10, 0x0A }, - { 0x13, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_IsFencePending -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_IsFencePending, 3925, 11) - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0xF0 }, - { 0x08, 0x03 }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - { 0x0B, 0x8B }, - { 0x0C, 0x40 }, - { 0x0D, 0x1C }, - { 0x1A, 0x1B }, - { 0x1F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * CMiniport::InitHardware -// ****************************************************************** -OOVPA_NO_XREF(CMiniport_InitHardware, 3911, 24) - { 0x00, 0x55 }, - { 0x01, 0x8B }, - { 0x02, 0xEC }, - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x0C }, - { 0x06, 0x53 }, - { 0x07, 0x56 }, - { 0x08, 0x8B }, - { 0x09, 0xF1 }, - { 0x0A, 0x56 }, - { 0x0B, 0x68 }, - - { 0x10, 0x8D }, - { 0x11, 0x86 }, - { 0x12, 0x88 }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x00 }, - { 0x16, 0x50 }, - { 0x17, 0xFF }, - { 0x18, 0x15 }, - - { 0x1D, 0x80 }, - { 0x1E, 0xA6 }, - { 0x1F, 0xF8 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * CMiniport::CreateCtxDmaObject -// ****************************************************************** -OOVPA_NO_XREF(CMiniport_CreateCtxDmaObject, 3911, 32) - { 0x00, 0x55 }, - { 0x01, 0x8B }, - { 0x02, 0xEC }, - { 0x03, 0x51 }, - { 0x04, 0x51 }, - { 0x05, 0x53 }, - { 0x06, 0x56 }, - { 0x07, 0x57 }, - { 0x08, 0x33 }, - { 0x09, 0xF6 }, - { 0x0A, 0x56 }, - { 0x0B, 0x8D }, - { 0x0C, 0x45 }, - { 0x0D, 0xFC }, - { 0x0E, 0x50 }, - { 0x0F, 0x8D }, - { 0x10, 0x45 }, - { 0x11, 0xF8 }, - { 0x12, 0x50 }, - { 0x13, 0xFF }, - { 0x14, 0x75 }, - { 0x15, 0x10 }, - { 0x16, 0x8B }, - { 0x17, 0xD1 }, - { 0x18, 0x8B }, - { 0x19, 0x3A }, - { 0x1A, 0x89 }, - { 0x1B, 0x75 }, - { 0x1C, 0xF8 }, - { 0x1D, 0x89 }, - { 0x1E, 0x75 }, - { 0x1F, 0xFC }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_CMiniport_GetDisplayCapabilities -// ****************************************************************** -OOVPA_NO_XREF(D3D_CMiniport_GetDisplayCapabilities, 3911, 15) -#define D3D_CMiniport_GetDisplayCapabilities_4361 D3D_CMiniport_GetDisplayCapabilities_3911 -#define D3D_CMiniport_GetDisplayCapabilities_4627 D3D_CMiniport_GetDisplayCapabilities_3911 -#define D3D_CMiniport_GetDisplayCapabilities_5233 D3D_CMiniport_GetDisplayCapabilities_3911 //?? -#define D3D_CMiniport_GetDisplayCapabilities_5344 D3D_CMiniport_GetDisplayCapabilities_3911 -#define D3D_CMiniport_GetDisplayCapabilities_5558 D3D_CMiniport_GetDisplayCapabilities_3911 -#define D3D_CMiniport_GetDisplayCapabilities_5659 D3D_CMiniport_GetDisplayCapabilities_3911 -#define D3D_CMiniport_GetDisplayCapabilities_5788 D3D_CMiniport_GetDisplayCapabilities_3911 -#define D3D_CMiniport_GetDisplayCapabilities_5849 D3D_CMiniport_GetDisplayCapabilities_3911 -#define D3D_CMiniport_GetDisplayCapabilities_5933 D3D_CMiniport_GetDisplayCapabilities_3911 - - // D3D_CMiniport_GetDisplayCapabilities+0x00 : xor eax, eax - { 0x00, 0x33 }, - { 0x01, 0xC0 }, - // D3D_CMiniport_GetDisplayCapabilities+0x02 : cmp ds:_D3D__AvInfo, eax - { 0x02, 0x39 }, - { 0x03, 0x05 }, - // D3D_CMiniport_GetDisplayCapabilities+0x08 : jne - { 0x08, 0x75 }, - { 0x09, 0x0f }, - // D3D_CMiniport_GetDisplayCapabilities+0x0A : push # - { 0x0A, 0x68 }, - // D3D_CMiniport_GetDisplayCapabilities+0x0F : push eax - { 0x0F, 0x50 }, - // D3D_CMiniport_GetDisplayCapabilities+0x10 : push 6 - { 0x10, 0x6A }, - { 0x11, 0x06 }, - // D3D_CMiniport_GetDisplayCapabilities+0x12 : push eax - { 0x12, 0x50 }, - // D3D_CMiniport_GetDisplayCapabilities+0x13 : call ds:AvSendTVEncoderOption - { 0x13, 0xFF }, - { 0x14, 0x15 }, - // D3D_CMiniport_GetDisplayCapabilities+0x19 : mov eax, # - { 0x19, 0xA1 }, - // D3D_CMiniport_GetDisplayCapabilities+0x1E : retn - { 0x1E, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetPushBufferOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetPushBufferOffset, 3925, 7) - - { 0x14, 0xB8 }, - { 0x2A, 0x8B }, - { 0x40, 0x47 }, - { 0x56, 0x89 }, - { 0x6C, 0xAB }, - { 0x82, 0x04 }, - { 0x98, 0x89 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DBaseTexture_GetLevelCount -// ****************************************************************** -/* Accuracy is not gauranteed. - It might be a ?GetMipmapLevelCount@PixelJar@D3D@@YGKPAUD3DPixelContainer@@@Z - that has an identical signature... */ -OOVPA_NO_XREF(D3DBaseTexture_GetLevelCount, 3911, 13) - - // D3DBaseTexture_GetLevelCount+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DBaseTexture_GetLevelCount+0x04 : movzx eax, [eax+0x0E] - { 0x04, 0x0F }, - { 0x05, 0xB6 }, - { 0x06, 0x40 }, - { 0x07, 0x0E }, - - // D3DBaseTexture_GetLevelCount+0x08 : and eax, 0x0F - { 0x08, 0x83 }, - { 0x09, 0xE0 }, - { 0x0A, 0x0F }, - - // D3DBaseTexture_GetLevelCount+0x0B : retn 0x04 - { 0x0B, 0xC2 }, - { 0x0C, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DCubeTexture_GetCubeMapSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DCubeTexture_GetCubeMapSurface, 3911, 11) - - { 0x01, 0xEC }, - { 0x18, 0x54 }, - { 0x19, 0x24 }, - { 0x1A, 0x24 }, - { 0x1B, 0x8D }, - { 0x1C, 0x44 }, - { 0x1D, 0x24 }, - { 0x1E, 0x14 }, - { 0x1F, 0x50 }, - { 0x32, 0x4C }, - { 0x45, 0x51 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetCreationParameters -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetCreationParameters, 3911, 7) - - { 0x06, 0x8B }, - { 0x0E, 0x8B }, - { 0x16, 0x4E }, - { 0x1E, 0x83 }, - { 0x26, 0x00 }, - { 0x2E, 0x5E }, - { 0x36, 0xC9 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetScissors -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetScissors, 3911, 15) - - { 0x00, 0x8B }, - { 0x01, 0x4C }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x85 }, - { 0x05, 0xC9 }, - { 0x06, 0xA1 }, - - { 0x11, 0x00 }, - { 0x18, 0x08 }, - { 0x19, 0x85 }, - { 0x1A, 0xC9 }, - { 0x1B, 0x74 }, - { 0x1C, 0x08 }, - { 0x1D, 0x8B }, - { 0x1E, 0x90 }, -// { 0x1F, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D::LazySetPointParams -// ****************************************************************** -OOVPA_NO_XREF(D3D_LazySetPointParams, 3911, 12) - - { 0x0A, 0x57 }, - { 0x0B, 0x08 }, - { 0x0C, 0x83 }, - { 0x0D, 0xE2 }, - { 0x0E, 0xFE }, - { 0x0F, 0x57 }, - { 0x10, 0x89 }, - { 0x11, 0x57 }, - { 0x12, 0x08 }, - { 0x13, 0xE8 }, - { 0x37, 0x89 }, - { 0x6E, 0x15 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * Lock3DSurface -// ****************************************************************** -OOVPA_NO_XREF(Lock3DSurface, 3911, 11) - - // D3D::PixelJar::Lock3DSurface + 0x08: test bl, 0x20 - { 0x08, 0xF6 }, - { 0x09, 0xC3 }, - { 0x0A, 0x20 }, - - // D3D::PixelJar::Lock3DSurface + 0x40: test bl, 0x40 - { 0x40, 0xF6 }, - { 0x41, 0xC3 }, - { 0x42, 0x40 }, - - // D3D::PixelJar::Lock3DSurface + 0x6D: and edx, 0x3C - { 0x6D, 0x83 }, - { 0x6E, 0xE2 }, - { 0x6F, 0x3C }, - - // D3D::PixelJar::Lock3DSurface + 0x99: ret 0x14 - { 0x99, 0xC2 }, - { 0x9A, 0x14 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D::CDevice::SetStateUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetStateUP, 3911, 16) - - { 0x01, 0xEC }, - { 0x0A, 0xE8 }, - - { 0x10, 0x46 }, - { 0x11, 0x08 }, - { 0x12, 0xF6 }, - { 0x13, 0xC4 }, - { 0x14, 0x01 }, - { 0x15, 0x0F }, - { 0x16, 0x84 }, - { 0x17, 0x79 }, - - { 0x56, 0x25 }, - { 0x9C, 0x00 }, - { 0x9D, 0x72 }, - { 0x9E, 0xB1 }, - { 0x9F, 0x56 }, - - { 0xA5, 0x8B }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D::CDevice::SetStateVB -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetStateVB, 3911, 16) - - { 0x00, 0x51 }, - { 0x08, 0xE8 }, - - { 0x10, 0xA9 }, - { 0x11, 0x00 }, - { 0x12, 0x00 }, - { 0x13, 0x00 }, - { 0x14, 0x40 }, - { 0x15, 0x0F }, - { 0x16, 0x85 }, - { 0x17, 0xCD }, - - { 0x56, 0x25 }, - { 0x8C, 0x00 }, - { 0x8D, 0x00 }, - { 0x8E, 0x81 }, - { 0x8F, 0xC1 }, - - { 0xA5, 0x8B }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * Direct3D_CheckDeviceMultiSampleType -// ****************************************************************** -OOVPA_NO_XREF(Direct3D_CheckDeviceMultiSampleType, 3911, 7) - - { 0x0E, 0x00 }, - { 0x1E, 0x54 }, - { 0x2E, 0xC9 }, - { 0x3E, 0x8B }, - { 0x4E, 0x08 }, - { 0x5E, 0x72 }, - { 0x6E, 0x03 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetOverlayUpdateStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetOverlayUpdateStatus, 3911, 15) // Also for 4134, 4361, 4627, 5344, 5558, 5788, 5849 - - { 0x00, 0xA1 }, - - { 0x05, 0x8B }, - { 0x06, 0x88 }, -// { 0x07, 0x88 }, -// { 0x08, 0x2A }, - { 0x09, 0x00 }, - -// { 0x0E, 0x5C }, -// { 0x0F, 0x24 }, - { 0x10, 0x00 }, - { 0x11, 0x00 }, - { 0x12, 0x33 }, - { 0x13, 0xD2 }, - { 0x14, 0x3B }, - { 0x15, 0xCE }, - { 0x16, 0x0F }, - { 0x17, 0x95 }, - { 0x18, 0xC2 }, - { 0x19, 0x5E }, - - { 0x1C, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_CheckDeviceFormat -// ****************************************************************** -OOVPA_NO_XREF(D3D_CheckDeviceFormat, 3911, 7) - - { 0x0E, 0x18 }, - { 0x1E, 0x00 }, - { 0x2E, 0x42 }, - { 0x41, 0x40 }, - { 0x4E, 0x74 }, - { 0x5E, 0x08 }, - { 0x6E, 0x3C }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_EnableOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EnableOverlay, 3911, 24) - - { 0x00, 0x8B }, - - { 0x09, 0x8B }, - { 0x0A, 0x80 }, - { 0x0B, 0x04 }, - { 0x0C, 0x04 }, - { 0x0D, 0x00 }, - { 0x0E, 0x00 }, - { 0x0F, 0x33 }, - { 0x10, 0xC9 }, - { 0x11, 0x3B }, - { 0x12, 0xD1 }, - { 0x13, 0x74 }, - { 0x14, 0x0A }, - { 0x15, 0x39 }, - { 0x16, 0x88 }, - { 0x17, 0x00 }, - { 0x18, 0x87 }, - { 0x19, 0x00 }, - { 0x1A, 0x00 }, - { 0x1B, 0x75 }, - { 0x1C, 0xF8 }, - { 0x1D, 0xEB }, - { 0x1E, 0x0A }, - { 0x1F, 0xC7 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 3911, 11) - - { 0x02, 0x08 }, - { 0x1F, 0x7C }, - { 0x6F, 0x8B }, - - { 0x80, 0x8B }, - { 0x81, 0x54 }, - { 0x82, 0x24 }, - { 0x83, 0x20 }, - { 0x84, 0x8B }, - { 0x85, 0x3F }, - { 0x86, 0x83 }, - { 0x87, 0xE1 }, -OOVPA_END; -#endif diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4034.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4034.inl index 0ccd55ef6..4057bf410 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4034.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4034.inl @@ -69,6 +69,7 @@ OOVPA_END; // * CMiniport::CreateCtxDmaObject // ****************************************************************** OOVPA_NO_XREF(CMiniport_CreateCtxDmaObject, 4034, 32) // Also for 4361, 4627, 5344, 5558, 5659, 5788, 5849, 5933 + { 0x00, 0x55 }, { 0x01, 0x8B }, { 0x02, 0xEC }, @@ -103,63 +104,6 @@ OOVPA_NO_XREF(CMiniport_CreateCtxDmaObject, 4034, 32) // Also for 4361, 4627, 53 { 0x1F, 0x3A }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetGammaRamp -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetGammaRamp, 4034, 7) - { 0x05, 0x8B }, - { 0x0A, 0x00 }, - { 0x10, 0xE1 }, - { 0x16, 0x0C }, - { 0x1C, 0x00 }, - { 0x22, 0x00 }, - { 0x28, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetCreationParameters -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetCreationParameters, 4034, 7) - - { 0x06, 0x8B }, - { 0x0E, 0x8B }, - { 0x16, 0x4E }, - { 0x1E, 0x83 }, - { 0x26, 0x00 }, - { 0x2E, 0x5E }, - { 0x36, 0xC9 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 4034, 10) - - // D3DDevice_GetViewport+0x05 : push esi; push edi - { 0x05, 0x56 }, - { 0x06, 0x57 }, - - // D3DDevice_GetViewport+0x0B : lea esi, [eax+0x0B50] - { 0x0B, 0x8D }, - { 0x0C, 0xB0 }, - { 0x0D, 0x50 }, - { 0x0E, 0x0B }, - - // D3DDevice_GetViewport+0x11 : mov ecx, 6 - { 0x11, 0xB9 }, - { 0x12, 0x06 }, - - // D3DDevice_GetViewport+0x1A : retn 0x04 - { 0x1A, 0xC2 }, - { 0x1B, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetViewport // ****************************************************************** @@ -262,22 +206,6 @@ OOVPA_NO_XREF(D3DDevice_BeginVisibilityTest, 4034, 7) { 0x28, 0x06 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_EndVisibilityTest -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndVisibilityTest, 4034, 7) - - { 0x0B, 0x8B }, - { 0x16, 0x5E }, - { 0x22, 0x07 }, - { 0x2E, 0x00 }, - { 0x3A, 0x81 }, - { 0x46, 0x89 }, - { 0x55, 0x5F }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CopyRects // ****************************************************************** @@ -293,22 +221,6 @@ OOVPA_NO_XREF(D3DDevice_CopyRects, 4034, 8) { 0xFE, 0x14 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_DeletePatch -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DeletePatch, 4034, 7) - - { 0x05, 0x0D }, - { 0x0C, 0xA1 }, - { 0x13, 0x34 }, - { 0x1A, 0x4E }, - { 0x21, 0x00 }, - { 0x2A, 0x56 }, - { 0x30, 0x5E }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_DrawIndexedVertices // ****************************************************************** @@ -344,43 +256,12 @@ OOVPA_XREF(D3DDevice_SetStreamSource, 4034, 1+14, // 1+28 XREF_ENTRY( 0x22, XREF_G_STREAM ), // Derived -#if 0 - { 0x00, 0x8B }, - { 0x01, 0x0D }, - - { 0x06, 0x56 }, - { 0x07, 0x57 }, -#endif - // D3DDevice_SetStreamSource+0x08 : mov edi, [esp+8+0x04] { 0x08, 0x8B }, { 0x09, 0x7C }, { 0x0A, 0x24 }, { 0x0B, 0x10 }, -#if 0 - { 0x0C, 0x85 }, - { 0x0D, 0xFF }, - { 0x0E, 0x74 }, - { 0x0F, 0x06 }, - { 0x10, 0x81 }, - { 0x11, 0x07 }, - { 0x12, 0x00 }, - { 0x13, 0x00 }, - { 0x14, 0x08 }, - { 0x15, 0x00 }, - { 0x16, 0x8B }, - { 0x17, 0x44 }, - { 0x18, 0x24 }, - { 0x19, 0x0C }, - { 0x1A, 0x8D }, - { 0x1B, 0x34 }, - { 0x1C, 0x40 }, - { 0x1D, 0xC1 }, - { 0x1E, 0xE6 }, - { 0x1F, 0x02 }, -#endif - // D3DDevice_SetStreamSource+0x28 : jz +0x26 { 0x28, 0x74 }, { 0x29, 0x26 }, @@ -430,34 +311,6 @@ OOVPA_NO_XREF(D3DDevice_SetTextureState_ColorKeyColor, 4034, 8) { 0x36, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_DrawVertices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVertices, 4034, 12) - - // D3DDevice_DrawVertices+0x12 : mov edi, [esp+0x0C+0x0C] - { 0x12, 0x8B }, - { 0x13, 0x7C }, - { 0x14, 0x24 }, - { 0x15, 0x18 }, - - // D3DDevice_DrawVertices+0x16 : lea esi, [edi-1] - { 0x16, 0x8D }, - { 0x17, 0x77 }, - { 0x18, 0xFF }, - - // D3DDevice_DrawVertices+0x7E : shl edi, 0x18 - { 0x7E, 0xC1 }, - { 0x7F, 0xE7 }, - { 0x80, 0x18 }, - - // D3DDevice_DrawVertices+0x9C : retn 0x0C - { 0x9C, 0xC2 }, - { 0x9D, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_LoadVertexShader // ****************************************************************** @@ -480,23 +333,6 @@ OOVPA_NO_XREF(D3DDevice_LoadVertexShader, 4034, 10) { 0x4F, 0x13 }, OOVPA_END; -#if 0 // obsolete, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_DrawRectPatch -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawRectPatch, 4034, 8) // obsolete, replaced by generic 3911 version - - { 0x1E, 0x6C }, - { 0x3E, 0x3C }, - { 0x5E, 0x54 }, - { 0x7F, 0x89 }, - { 0x9E, 0x00 }, - { 0xBE, 0xD9 }, - { 0xDE, 0xD9 }, - { 0xFE, 0x86 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetIndices // ****************************************************************** @@ -520,33 +356,6 @@ OOVPA_NO_XREF(D3DDevice_SetIndices, 4034, 14) { 0x49, 0xE8 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetIndices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetIndices, 4034, 11) - - // D3DDevice_SetIndices+0x0E : jz +0x10 - { 0x0E, 0x74 }, - { 0x0F, 0x10 }, - - // D3DDevice_SetIndices+0x1E : jmp +0x0A - { 0x1E, 0xEB }, - { 0x1F, 0x0A }, - - // D3DDevice_SetIndices+0x59 : mov [esi+0x1C], ecx - { 0x59, 0x89 }, - { 0x5A, 0x4E }, - { 0x5B, 0x1C }, - - // D3DDevice_SetIndices+0x76 : mov [esi+0x0504], edi - { 0x76, 0x89 }, - { 0x77, 0xBE }, - { 0x78, 0x04 }, - { 0x79, 0x05 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_EdgeAntiAlias // ****************************************************************** @@ -603,23 +412,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_BackFillMode, 4034, 13) { 0x4F, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_BackFillMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_BackFillMode, 4034, 8) - - { 0x00, 0x8B }, - { 0x0B, 0xA3 }, - { 0x14, 0x04 }, - { 0x23, 0x8B }, - { 0x2A, 0xC9 }, - { 0x35, 0xC7 }, - { 0x40, 0x08 }, - { 0x4C, 0x5F }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_FogColor // ****************************************************************** @@ -817,22 +609,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_VertexBlend, 4034, 7) { 0x3D, 0x5E }, OOVPA_END; -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3D_CheckDeviceFormat -// ****************************************************************** -OOVPA_NO_XREF(D3D_CheckDeviceFormat, 4034, 7) - - { 0x0E, 0x18 }, - { 0x1E, 0x00 }, - { 0x2E, 0x42 }, - { 0x41, 0x40 }, - { 0x4E, 0x74 }, - { 0x5E, 0x08 }, - { 0x6E, 0x3C }, -OOVPA_END; -#endif - // ****************************************************************** // * Get2DSurfaceDesc // ****************************************************************** @@ -850,30 +626,6 @@ OOVPA_NO_XREF(Get2DSurfaceDesc, 4034, 10) { 0xAE, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 4034, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x62 : mov eax, [eax+0x21DC] - { 0x56, 0x8B }, - { 0x57, 0x80 }, - { 0x58, 0xDC }, - { 0x59, 0x21 }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_ZEnable // ****************************************************************** @@ -901,37 +653,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_ZEnable, 4034, 13) { 0x99, 0x04 }, OOVPA_END; -#if 0 // Used 3911 -// ****************************************************************** -// * D3DDevice_LightEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LightEnable, 4034, 13) - - // D3DDevice_LightEnable+0x0F : cmp ebx, [esi+0x050C] - { 0x0F, 0x3B }, - { 0x10, 0x9E }, - { 0x11, 0x0C }, - { 0x12, 0x05 }, - - // D3DDevice_LightEnable+0x6B : test eax, eax - { 0x6B, 0x85 }, - { 0x6C, 0xC0 }, - - // D3DDevice_LightEnable+0x9E : mov eax, [eax+0x8C] - { 0x9E, 0x8B }, - { 0x9F, 0x80 }, - { 0xA0, 0x8C }, - - // D3DDevice_LightEnable+0xBC : jz +0x12 - { 0xBC, 0x74 }, - { 0xBD, 0x12 }, - - // D3DDevice_LightEnable+0xE1 : retn 0x08 - { 0xE1, 0xC2 }, - { 0xE2, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_TextureFactor // ****************************************************************** @@ -956,55 +677,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_TextureFactor, 4034, 15) { 0x4F, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetRenderState_TextureFactor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TextureFactor, 4034, 9) - - // D3DDevice_SetRenderState_TextureFactor+0x07 : mov eax, [esi+0x04E8] - { 0x07, 0x8B }, - { 0x08, 0x86 }, - { 0x09, 0xE8 }, - { 0x0A, 0x04 }, - - // D3DDevice_SetRenderState_TextureFactor+0x2F : nop - { 0x2F, 0x90 }, - - // D3DDevice_SetRenderState_TextureFactor+0x41 : retn 0x04 - { 0x41, 0xC2 }, - { 0x42, 0x04 }, - - // D3DDevice_SetRenderState_TextureFactor+0x4E : retn 0x04 - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 4034, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x52 : mov edx, [eax+0x21FC] - { 0x52, 0x8B }, - { 0x53, 0x90 }, - { 0x54, 0xFC }, - { 0x55, 0x21 }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_Clear // ****************************************************************** @@ -1030,56 +702,6 @@ OOVPA_NO_XREF(D3DDevice_Clear, 4034, 16) { 0x81, 0xB6 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_Clear -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Clear, 4034, 9) - // D3DDevice_Clear+0x0000 : sub esp, 38h - { 0x0000, 0x83 }, - { 0x0001, 0xEC }, - { 0x0002, 0x38 }, - - // D3DDevice_Clear+0x000B : mov ebx, [ebp+0x21F4] - { 0x000B, 0x8B }, - { 0x000C, 0x9D }, - { 0x000D, 0xF4 }, - { 0x000E, 0x21 }, - - // D3DDevice_Clear+0x0399 : retn 0x18 - { 0x0399, 0xC2 }, - { 0x039A, 0x18 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetLight -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetLight, 4034, 12) - - // D3DDevice_SetLight+0x11 : mov edi, [ebp+0x50C] - { 0x11, 0x8B }, - { 0x12, 0xBD }, - { 0x13, 0x0C }, - { 0x14, 0x05 }, - - // D3DDevice_SetLight+0x30 : shl eax, 0x04 - { 0x30, 0xC1 }, - { 0x31, 0xE0 }, - { 0x32, 0x04 }, - - // D3DDevice_SetLight+0xBD : rep stosb - { 0xBD, 0xF3 }, - { 0xBE, 0xAB }, - - // D3DDevice_SetLight+0xFD : mov ecx, [ebx+0x68] - { 0xFD, 0x8B }, - { 0xFE, 0x4B }, - { 0xFF, 0x68 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DVertexBuffer_Lock // ****************************************************************** @@ -1167,32 +789,6 @@ OOVPA_XREF(D3DDevice_SetPalette, 4034, 1+12, { 0x54, 0x00 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPalette -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPalette, 4034, 12) - - // D3DDevice_SetPalette+0x0D : mov eax, [edi+esi*4+0x0C08] - { 0x0D, 0x8B }, - { 0x0E, 0x84 }, - { 0x0F, 0xBE }, - { 0x10, 0x08 }, - { 0x11, 0x0C }, - - // D3DDevice_SetPalette+0x76 : add edi, 0x41B20 - { 0x76, 0x81 }, - { 0x77, 0xC7 }, - { 0x78, 0x20 }, - { 0x79, 0x1B }, - { 0x7A, 0x04 }, - - // D3DDevice_SetPalette+0x8A : retn 0x08 - { 0x8A, 0xC2 }, - { 0x8B, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetTextureState_TexCoordIndex // ****************************************************************** @@ -1305,33 +901,6 @@ OOVPA_NO_XREF(D3DDevice_Swap, 4034, 20) // Up to 4432 { 0x29, 0x8B }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_Swap -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Swap, 4034, 11) - - // D3DDevice_Swap+0x10 : mov ebx, 5 - { 0x10, 0xBB }, - { 0x11, 0x05 }, - - // D3DDevice_Swap+0x1D : test bl, 3 - { 0x1D, 0xF6 }, - { 0x1E, 0xC3 }, - { 0x1F, 0x03 }, - - // D3DDevice_Swap+0x30 : mov [esi+0x2C38], eax - { 0x30, 0x89 }, - { 0x31, 0x86 }, - { 0x32, 0x38 }, - { 0x33, 0x2C }, - - // D3DDevice_Swap+0xB0 : retn 4 - { 0xB0, 0xC2 }, - { 0xB1, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_KickOffAndWaitForIdle // ****************************************************************** @@ -1396,31 +965,6 @@ OOVPA_XREF(D3DDevice_CreateImageSurface, 4034, 1+1, { 0x00, 0xE9 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_CreateImageSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateImageSurface, 4034, 9) - - // D3DDevice_CreateImageSurface+0x2A : push 0x18 - { 0x2A, 0x6A }, - { 0x2B, 0x18 }, - - // D3DDevice_CreateImageSurface+0x2C : push 0x40 - { 0x2C, 0x6A }, - { 0x2D, 0x40 }, - - // D3DDevice_CreateImageSurface+0x3B : push 0x0404 - { 0x3B, 0x68 }, - { 0x3C, 0x04 }, - { 0x3D, 0x04 }, - - // D3DDevice_CreateImageSurface+0x61 : retn 0x10 - { 0x61, 0xC2 }, - { 0x62, 0x10 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetBackBuffer // ****************************************************************** @@ -1777,21 +1321,6 @@ OOVPA_NO_XREF(D3DDevice_End, 4039, 16) // Up to 5233 { 0x3C, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_End -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_End, 4039, 7) - { 0x07, 0x8B }, - { 0x0E, 0xE8 }, - { 0x16, 0x17 }, - { 0x1E, 0x00 }, - { 0x26, 0x46 }, - { 0x2E, 0x01 }, - { 0x36, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetFlickerFilter // ****************************************************************** @@ -1844,6 +1373,7 @@ OOVPA_END; // * D3DDevice_SetRenderState_PSTextureModes // ****************************************************************** OOVPA_NO_XREF(D3DDevice_SetRenderState_PSTextureModes, 4034, 10) + { 0x0A, 0x89 }, { 0x0B, 0x81 }, { 0x0E, 0x00 }, @@ -1901,33 +1431,6 @@ OOVPA_NO_XREF(D3DResource_IsBusy, 4039, 11) { 0x77, 0x09 }, OOVPA_END; -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_SetBackBufferScale -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackBufferScale, 4039, 16) - - { 0x09, 0x86 }, - - { 0x10, 0xC1 }, - { 0x11, 0xE9 }, - { 0x12, 0x04 }, - { 0x13, 0x83 }, - { 0x14, 0xE1 }, - { 0x15, 0x0F }, - { 0x16, 0x85 }, - { 0x17, 0xC9 }, - - { 0x28, 0xD8 }, - { 0x29, 0x4C }, - { 0x2A, 0x24 }, - { 0x2B, 0x0C }, - { 0x2C, 0x83 }, - { 0x2D, 0xE0 }, - { 0x2E, 0x0F }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_MultiSampleMode // ****************************************************************** @@ -2007,76 +1510,6 @@ OOVPA_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 4034, 2+8, { 0x2B, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_IsBusy -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_IsBusy, 4034, 7) - - { 0x05, 0x8B }, - { 0x0C, 0x90 }, - { 0x13, 0x44 }, - { 0x1A, 0xFF }, - { 0x21, 0x01 }, - { 0x28, 0x00 }, - { 0x2F, 0xD2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetRenderTarget -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetRenderTarget, 4039, 1+11, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x07, XREF_OFFSET_D3DDEVICE_M_RENDERTARGET ), // Derived - - // D3DDevice_GetRenderTarget+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetRenderTarget+0x05 : mov eax, [eax + 0x21F0] - { 0x05, 0x8B }, - { 0x06, 0x80 }, - { 0x07, 0xF0 }, - { 0x08, 0x21 }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - - // D3DDevice_GetRenderTarget+0x0B : test eax, eax - { 0x0B, 0x85 }, - { 0x0C, 0xC0 }, - - // D3DDevice_GetRenderTarget+0x1D : retn 0x04 - { 0x1D, 0xC2 }, - { 0x1E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_GetDisplayFieldStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayFieldStatus, 4039, 12) - - { 0x00, 0xA1 }, - - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - { 0x0B, 0x8B }, - { 0x0C, 0x4C }, - { 0x0D, 0x24 }, - { 0x0E, 0x04 }, - { 0x0F, 0x89 }, - { 0x10, 0x51 }, - { 0x11, 0x04 }, - { 0x12, 0xF7 }, - { 0x1C, 0x74 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_PersistDisplay // ****************************************************************** @@ -2278,37 +1711,6 @@ OOVPA_NO_XREF(D3DDevice_GetDisplayMode, 4039, 24) { 0x4D, 0xE0 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_GetDisplayMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayMode, 4039, 13) - - // D3DDevice_GetDisplayMode+0x01 : mov esi, ds:[*] - { 0x01, 0x8B }, - { 0x02, 0x35 }, - - // D3DDevice_GetDisplayMode+0x18 : shr ecx, 0x14 - { 0x18, 0xC1 }, - { 0x19, 0xE9 }, - { 0x1A, 0x14 }, - - // D3DDevice_GetDisplayMode+0x50 : shr eax, 0x0C - { 0x50, 0xC1 }, - { 0x51, 0xE8 }, - { 0x52, 0x0C }, - - // D3DDevice_GetDisplayMode+0x6B : and eax, 0x0A - { 0x6B, 0x83 }, - { 0x6C, 0xE0 }, - { 0x6D, 0x0A }, - - // D3DDevice_GetDisplayMode+0x92 : retn 0x04 - { 0x92, 0xC2 }, - { 0x93, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetTextureState_BumpEnv // ****************************************************************** @@ -2361,57 +1763,6 @@ OOVPA_XREF(D3DDevice_KickOff, 4034, 15, { 0x87, 0xB8 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetScissors -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScissors, 4039, 10) - - // D3DDevice_SetScissors+0x0E : mov ebx, [esp+28h+arg_0] - { 0x04, 0x8B }, - { 0x05, 0x5C }, - { 0x06, 0x24 }, - { 0x07, 0x2C }, - - // D3DDevice_SetScissors+0x0E : test ebx, ebx - { 0x08, 0x85 }, - { 0x09, 0xDB }, - - { 0x0A, 0x55 }, - { 0x0B, 0x8B }, - - // D3DDevice_SetScissors+0x0E : mov edx, [ebp+XXXh] - { 0x1B, 0x8B }, - { 0x1C, 0x95 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetPixelShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderConstant, 4039, 10) - - // D3DDevice_SetPixelShaderConstant+0x17 : test eax, eax - { 0x17, 0x85 }, - { 0x18, 0xC0 }, - - // D3DDevice_SetPixelShaderConstant+0x32 : add edi, 0x04 - { 0x32, 0x83 }, - { 0x33, 0xC7 }, - { 0x34, 0x04 }, - - // D3DDevice_SetPixelShaderConstant+0x47 : jmp +0x07 - { 0x47, 0xEB }, - { 0x48, 0x07 }, - - // D3DDevice_SetPixelShaderConstant+0xC7 : fstp [esp+??] - { 0xC7, 0xD9 }, - { 0xC8, 0x1C }, - { 0xC9, 0x24 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::SetFence // ****************************************************************** @@ -2456,32 +1807,6 @@ OOVPA_NO_XREF(D3DDevice_RunPushBuffer, 4039, 8) { 0xFE, 0x24 }, OOVPA_END; -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_Reset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Reset, 4039, 10) - - // D3DDevice_Reset+0x15 : mov ecx, ebp - { 0x15, 0x8B }, - { 0x16, 0xCD }, - - // D3DDevice_Reset+0x1E : jnz +0xF5 - { 0x1E, 0x75 }, - { 0x1F, 0xF5 }, - - // D3DDevice_Reset+0x27 : mov esi, [esp+0x14] - { 0x27, 0x8B }, - { 0x28, 0x74 }, - { 0x29, 0x24 }, - { 0x2A, 0x14 }, - - // D3DDevice_Reset+0x37 : jge +0x10 - { 0x37, 0x7D }, - { 0x38, 0x10 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::BlockOnTime // ****************************************************************** @@ -2504,27 +1829,6 @@ OOVPA_XREF(D3D_BlockOnTime, 4034, 10, { 0x2F, 0x53 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_BlockOnFence -// ****************************************************************** -OOVPA_XREF(D3DDevice_BlockOnFence, 4039, 1+7, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x08, XREF_D3D_BlockOnTime ), - - { 0x00, 0x8B }, - { 0x02, 0x24 }, - { 0x04, 0x6A }, - { 0x06, 0x50 }, - { 0x0C, 0xC2 }, - { 0x0D, 0x04 }, - { 0x0E, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetTile // ****************************************************************** @@ -2615,22 +1919,6 @@ OOVPA_NO_XREF(D3DDevice_GetVertexShaderConstant, 4039, 12) { 0x2F, 0x5F }, OOVPA_END; -#if 0 // No longer used, replaced by another 4039 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderConstant, 4039, 7) - - { 0x05, 0x15 }, - { 0x0C, 0x24 }, - { 0x13, 0xE0 }, - { 0x1A, 0x8D }, - { 0x21, 0x8B }, - { 0x28, 0x8B }, - { 0x2F, 0x5F }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_IsFencePending // ****************************************************************** @@ -2671,6 +1959,7 @@ OOVPA_END; // * D3D::LazySetPointParams // ****************************************************************** OOVPA_NO_XREF(D3D_LazySetPointParams, 4034, 7) + { 0x00, 0x83 }, { 0x01, 0xEC }, { 0x02, 0x14 }, diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4134.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4134.inl index e7ec540ec..fb194994c 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4134.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4134.inl @@ -32,256 +32,6 @@ // * // ****************************************************************** -#if 0 // Moved to 4034 -// ****************************************************************** -// * D3DDevice_SetTextureState_TexCoordIndex -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetTextureState_TexCoordIndex, 4134, 1+10, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x18, XREF_D3DTSS_TEXCOORDINDEX ), // Derived - - // D3DDevice_SetTextureState_TexCoordIndex+0x13 : shl eax, 0x07 - { 0x13, 0xC1 }, - { 0x14, 0xE0 }, - { 0x15, 0x07 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0x25 : cmp eax, ecx - { 0x25, 0x3B }, - { 0x26, 0xC1 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0x6C : mov edi, 0x2400 - { 0x6C, 0xBF }, - { 0x6E, 0x24 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0xB3 : shl edx, 0x04 - { 0xB4, 0xC1 }, - { 0xB5, 0xE2 }, - { 0xB6, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetTransform -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTransform, 4134, 11) - - // D3DDevice_SetTransform+0x00 : mov eax, [esp+arg_0] - { 0x00, 0x8B }, - - // D3DDevice_SetTransform+0x16 : lea edi, [ecx+ebx+0x750] - { 0x16, 0x8D }, - { 0x17, 0xBC }, - { 0x18, 0x19 }, - - // D3DDevice_SetTransform+0x24 : repe movsd - { 0x24, 0xF3 }, - { 0x25, 0xA5 }, - - // D3DDevice_SetTransform+0x78 : fld [edx+0x3C] - { 0x78, 0xD9 }, - { 0x79, 0x42 }, - { 0x7A, 0x3C }, - - // D3DDevice_SetTransform+0x92 : jmp +0x10 - { 0x92, 0xEB }, - { 0x93, 0x10 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_CheckDeviceFormat -// ****************************************************************** -OOVPA_NO_XREF(D3D_CheckDeviceFormat, 4134, 8) - - // D3D_CheckDeviceFormat+0x0D : retn 0x18 - { 0x0D, 0xC2 }, - { 0x0E, 0x18 }, - - // D3D_CheckDeviceFormat+0x15 : jz +0x08 - { 0x15, 0x74 }, - { 0x16, 0x08 }, - - // D3D_CheckDeviceFormat+0x29 : mov cl, 0x80 - { 0x29, 0xB1 }, - { 0x2A, 0x80 }, - - // D3D_CheckDeviceFormat+0x61 : retn 0x18 - { 0x61, 0xC2 }, - { 0x62, 0x18 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_GetAdapterModeCount -// ****************************************************************** -OOVPA_NO_XREF(D3D_GetAdapterModeCount, 4134, 12) - - // D3D_GetAdapterModeCount+0x25 : add edx, 0xFF - { 0x25, 0x81 }, - { 0x26, 0xE2 }, - { 0x27, 0xFF }, - - // D3D_GetAdapterModeCount+0x47 : cmp edi, 0x04 - { 0x47, 0x83 }, - { 0x48, 0xFF }, - { 0x49, 0x04 }, - - // D3D_GetAdapterModeCount+0x95 : shl eax, 0x02 - { 0x95, 0xC1 }, - { 0x96, 0xE0 }, - { 0x97, 0x02 }, - - // D3D_GetAdapterModeCount+0x99 : add esp, 0x08 - { 0x99, 0x83 }, - { 0x9A, 0xC4 }, - { 0x9B, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_EnumAdapterModes -// ****************************************************************** -OOVPA_NO_XREF(D3D_EnumAdapterModes, 4134, 10) - - // D3D_EnumAdapterModes+0x00 : sub esp, 0x08 - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x08 }, - - // D3D_EnumAdapterModes+0xD1 : and edx, 0x0A - { 0xD1, 0x83 }, - { 0xD2, 0xE2 }, - { 0xD3, 0x0A }, - - // D3D_EnumAdapterModes+0xF5 : mov dword ptr[edi+0x10], 0x1E - { 0xF5, 0xC7 }, - { 0xF6, 0x47 }, - { 0xF7, 0x10 }, - { 0xF8, 0x1E }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_FogColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_FogColor, 4134, 10) - - // D3DDevice_SetRenderState_FogColor+0x07 : mov eax, [esi] - { 0x07, 0x8B }, - { 0x08, 0x06 }, - - // D3DDevice_SetRenderState_FogColor+0x09 : cmp eax, [esi+4] - { 0x09, 0x3B }, - { 0x0A, 0x46 }, - { 0x0B, 0x04 }, - - // D3DDevice_SetRenderState_FogColor+0x25 : shl edi, 0x10 - { 0x25, 0xC1 }, - { 0x26, 0xE7 }, - { 0x27, 0x10 }, - - // D3DDevice_SetRenderState_FogColor+0x40 : mov [esi], eax - { 0x40, 0x89 }, - { 0x41, 0x06 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_Swap -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Swap, 4134, 11) - - // D3DDevice_Swap+0x10 : mov ebx, 5 - { 0x10, 0xBB }, - { 0x11, 0x05 }, - - // D3DDevice_Swap+0x1D : test bl, 3 - { 0x1D, 0xF6 }, - { 0x1E, 0xC3 }, - { 0x1F, 0x03 }, - - // D3DDevice_Swap+0x46 : inc dword ptr [esi+0x2ABC] - { 0x46, 0xFF }, - { 0x47, 0x86 }, - { 0x48, 0xBC }, - { 0x49, 0x2A }, - - // D3DDevice_Swap+0xAE : retn 4 - { 0xAE, 0xC2 }, - { 0xAF, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_Clear -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Clear, 4134, 9) - // D3DDevice_Clear+0x0000 : sub esp, 38h - { 0x0000, 0x83 }, - { 0x0001, 0xEC }, - { 0x0002, 0x38 }, - - // D3DDevice_Clear+0x000B : mov ebx, [ebp+0x2074] - { 0x000B, 0x8B }, - { 0x000C, 0x9D }, - { 0x000D, 0x74 }, - { 0x000E, 0x20 }, - - // D3DDevice_Clear+0x0399 : retn 0x18 - { 0x0399, 0xC2 }, - { 0x039A, 0x18 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_Begin -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Begin, 4134, 11) - // D3DDevice_Begin : mov dword ptr [eax], 0x417FC - { 0x1C, 0xC7 }, - { 0x1D, 0x00 }, - { 0x1E, 0xFC }, - { 0x1F, 0x17 }, - { 0x20, 0x04 }, - { 0x21, 0x00 }, - - // D3DDevice_Begin : mov [eax+4], ecx - { 0x22, 0x89 }, - { 0x23, 0x48 }, - { 0x24, 0x04 }, - - // D3DDevice_Begin : retn 0x04 - { 0x32, 0xC2 }, - { 0x33, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_End -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_End, 4134, 7) - { 0x07, 0x8B }, - { 0x0E, 0xE8 }, - { 0x16, 0x17 }, - { 0x1E, 0x00 }, - { 0x26, 0x46 }, - { 0x2E, 0x01 }, - { 0x36, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetBackBuffer // ****************************************************************** @@ -308,31 +58,6 @@ OOVPA_NO_XREF(D3DDevice_GetBackBuffer, 4134, 12) { 0x21, 0x20 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetDepthStencilSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDepthStencilSurface, 4134, 9) - - // D3DDevice_GetDepthStencilSurface+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetDepthStencilSurface+0x05 : mov eax, [eax + 0x2074] - { 0x05, 0x8B }, - { 0x06, 0x80 }, - { 0x07, 0x74 }, - { 0x08, 0x20 }, - - // D3DDevice_GetDepthStencilSurface+0x11 : mov [ecx], eax - { 0x11, 0x89 }, - { 0x12, 0x01 }, - - // D3DDevice_GetDepthStencilSurface+0x1D : retn 0x04 - { 0x1D, 0xC2 }, - { 0x1E, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderTarget // ****************************************************************** @@ -364,298 +89,6 @@ OOVPA_XREF(D3DDevice_SetRenderTarget, 4134, 1+9, { 0x7B, 0x14 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SelectVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SelectVertexShader, 4134, 11) - - // D3DDevice_SelectVertexShader+0x13 : mov [esi+0x384], eax - { 0x13, 0x89 }, - { 0x14, 0x86 }, - { 0x15, 0x84 }, - { 0x16, 0x03 }, - - // D3DDevice_SelectVertexShader+0x3B : mov dword ptr [eax], 0x00081E94 - { 0x3B, 0xC7 }, - { 0x3C, 0x00 }, - { 0x3D, 0x94 }, - { 0x3E, 0x1E }, - { 0x3F, 0x08 }, - - // D3DDevice_SelectVertexShader+0x55 : mov [esi], eax - { 0x55, 0x89 }, - { 0x56, 0x06 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_CopyRects -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CopyRects, 4134, 10) - - // D3DDevice_CopyRects+0x00 : sub esp, 0x01A0 - { 0x00, 0x81 }, - { 0x01, 0xEC }, - { 0x02, 0xA0 }, - { 0x03, 0x01 }, - - // D3DDevice_CopyRects+0x6E : mov esi, [eax+0x201C] - { 0x6E, 0x8B }, - { 0x6F, 0xB0 }, - { 0x70, 0x1C }, - { 0x71, 0x20 }, - - // D3DDevice_CopyRects+0xDD : jnz +0x22 - { 0xDD, 0x75 }, - { 0xDE, 0x22 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4034 -// ****************************************************************** -// * D3D::CreateStandAloneSurface -// ****************************************************************** -OOVPA_XREF(D3D_CreateStandAloneSurface, 4134, 12, - - XREF_D3D_CreateStandAloneSurface, - XRefZero) - - { 0x01, 0x54 }, - - { 0x17, 0x14 }, - { 0x18, 0x6A }, - { 0x19, 0x00 }, - { 0x1A, 0x6A }, - { 0x1B, 0x00 }, - { 0x1C, 0x6A }, - { 0x1D, 0x00 }, - { 0x1E, 0x52 }, - { 0x1F, 0x6A }, - - { 0x36, 0xF0 }, - { 0x4B, 0x15 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4034 -// ****************************************************************** -// * D3DDevice_CreateImageSurface -// ****************************************************************** -OOVPA_XREF(D3DDevice_CreateImageSurface, 4134, 1+1, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x01, XREF_D3D_CreateStandAloneSurface ), - - { 0x00, 0xE9 }, -OOVPA_END; -#endif - -#if 0 // Probably ?Lock3DSurface@PixelJar@D3D@@YGXPAUD3DPixelContainer@@IPAU_D3DLOCKED_BOX@@PBU_D3DBOX@@K@Z -// ****************************************************************** -// * D3DDevice_CreateImageSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateImageSurface, 4134, 28) - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x08 }, - { 0x03, 0x53 }, - { 0x04, 0x8A }, - { 0x05, 0x5C }, - { 0x06, 0x24 }, - { 0x07, 0x20 }, - { 0x08, 0xF6 }, - { 0x09, 0xC3 }, - { 0x0A, 0x20 }, - { 0x0B, 0x55 }, - { 0x0C, 0x8B }, - { 0x0D, 0x6C }, - { 0x0E, 0x24 }, - { 0x0F, 0x14 }, - { 0x10, 0x56 }, - { 0x11, 0x57 }, - { 0x12, 0x75 }, - { 0x13, 0x06 }, - { 0x14, 0x55 }, - { 0x15, 0xE8 }, - { 0x1A, 0x8D }, - { 0x1B, 0x44 }, - { 0x1C, 0x24 }, - { 0x1D, 0x10 }, - { 0x1E, 0x50 }, - { 0x1F, 0x8D }, - - OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPixelShader -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPixelShader, 4134, 1+10, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PIXELSHADER ), // Derived - - // D3DDevice_SetPixelShader+0x0E : mov esi, [ebx+0x0370] - { 0x0E, 0x8B }, - { 0x0F, 0xB3 }, - { 0x10, 0x70 }, - { 0x11, 0x03 }, - - // D3DDevice_SetPixelShader+0x3A : or eax, 0x2000 - { 0x3A, 0x0D }, - { 0x3C, 0x20 }, - - // D3DDevice_SetPixelShader+0x78 : retn 0x04 - { 0x78, 0xC2 }, - { 0x79, 0x04 }, - - // D3DDevice_SetPixelShader+0xE3 : rep movsd - { 0xE3, 0xF3 }, - { 0xE4, 0xA5 }, - -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_SetTextureState_BumpEnv -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTextureState_BumpEnv, 4134, 12) - - // D3DDevice_SetTextureState_BumpEnv+0x18 : jnz +0x03 - { 0x18, 0x75 }, - { 0x19, 0x03 }, - - // D3DDevice_SetTextureState_BumpEnv+0x1D : test bl, 3 - { 0x1D, 0xF6 }, - { 0x1E, 0xC3 }, - { 0x1F, 0x03 }, - - // D3DDevice_SetTextureState_BumpEnv+0x32 : mov ecx, [esp+0x14] - { 0x32, 0x8B }, - { 0x33, 0x4C }, - { 0x34, 0x24 }, - { 0x35, 0x18 }, - - // D3DDevice_SetTextureState_BumpEnv+0x50 : shl esi, 5 - { 0x50, 0xC1 }, - { 0x51, 0xE6 }, - { 0x52, 0x05 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetIndices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetIndices, 4134, 11) - - // D3DDevice_SetIndices+0x0E : jz +0x10 - { 0x0E, 0x74 }, - { 0x0F, 0x10 }, - - // D3DDevice_SetIndices+0x1E : jmp +0x0A - { 0x1E, 0xEB }, - { 0x1F, 0x0A }, - - // D3DDevice_SetIndices+0x59 : mov [esi+0x1C], ecx - { 0x59, 0x89 }, - { 0x5A, 0x4E }, - { 0x5B, 0x1C }, - - // D3DDevice_SetIndices+0x76 : mov [esi+0x038C], edi - { 0x76, 0x89 }, - { 0x77, 0xBE }, - { 0x78, 0x8C }, - { 0x79, 0x03 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_VertexBlend -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_VertexBlend, 4134, 11) - - // D3DDevice_SetRenderState_VertexBlend+0x06 : or edx, 0x200 - { 0x06, 0x81 }, - { 0x07, 0xCA }, - { 0x08, 0x00 }, - { 0x09, 0x02 }, - - // D3DDevice_SetRenderState_VertexBlend+0x1E : jb +0x05 - { 0x1E, 0x72 }, - { 0x1F, 0x05 }, - - // D3DDevice_SetRenderState_VertexBlend+0x2F : mov [eax+4], ecx - { 0x2F, 0x89 }, - { 0x30, 0x48 }, - { 0x31, 0x04 }, - - // D3DDevice_SetRenderState_VertexBlend+0x3E : retn 0x04 - { 0x3E, 0xC2 }, - { 0x3F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_TextureFactor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TextureFactor, 4134, 9) - - // D3DDevice_SetRenderState_TextureFactor+0x07 : mov eax, [esi+0x0370] - { 0x07, 0x8B }, - { 0x08, 0x86 }, - { 0x09, 0x70 }, - { 0x0A, 0x03 }, - - // D3DDevice_SetRenderState_TextureFactor+0x2F : nop - { 0x2F, 0x90 }, - - // D3DDevice_SetRenderState_TextureFactor+0x41 : retn 0x04 - { 0x41, 0xC2 }, - { 0x42, 0x04 }, - - // D3DDevice_SetRenderState_TextureFactor+0x4E : retn 0x04 - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_EdgeAntiAlias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_EdgeAntiAlias, 4134, 10) - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x07 : mov eax, [esi] - { 0x07, 0x8B }, - { 0x08, 0x06 }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x0C : jb +0x05 - { 0x0C, 0x72 }, - { 0x0D, 0x05 }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x13 : mov ecx, [esp+0x08] - { 0x13, 0x8B }, - { 0x14, 0x4C }, - { 0x15, 0x24 }, - { 0x16, 0x08 }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x2F : retn 0x04 - { 0x2F, 0xC2 }, - { 0x30, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_ZEnable // ****************************************************************** @@ -683,65 +116,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_ZEnable, 4134, 13) { 0x99, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_StencilEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_StencilEnable, 4134, 11) - - // D3DDevice_SetRenderState_StencilEnable+0x0C : jb +0x05 - { 0x0C, 0x72 }, - { 0x0D, 0x05 }, - - // D3DDevice_SetRenderState_StencilEnable+0x2C : jz +0x19 - { 0x2C, 0x74 }, - { 0x2D, 0x19 }, - - // D3DDevice_SetRenderState_StencilEnable+0x4D : mov dword ptr [eax], 0x00041D84 - { 0x4D, 0xC7 }, - { 0x4E, 0x00 }, - { 0x4F, 0x84 }, - { 0x50, 0x1D }, - { 0x51, 0x04 }, - - // D3DDevice_SetRenderState_StencilEnable+0x81 : retn 0x04 - { 0x81, 0xC2 }, - { 0x82, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleAntiAlias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleAntiAlias, 4134, 12) - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x04 : push esi - { 0x04, 0x56 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x05 : mov esi, dword ptr [addr] - { 0x05, 0x8B }, - { 0x06, 0x35 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x0B : mov ecx, esi - { 0x0B, 0x8B }, - { 0x0C, 0xCE }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x1C : jb +0x05 - { 0x1C, 0x72 }, - { 0x1D, 0x05 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x38 : shl ecx, 0x10 - { 0x38, 0xC1 }, - { 0x39, 0xE1 }, - { 0x3A, 0x10 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x4F : retn 0x04 - { 0x4F, 0xC2 }, - { 0x50, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVertexShader // ****************************************************************** @@ -770,58 +144,6 @@ OOVPA_NO_XREF(D3DDevice_SetVertexShader, 4134, 14) { 0xB4, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_DrawVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVerticesUP, 4134, 10) - - // D3DDevice_DrawVerticesUP+0x03 : sub esp, 0x14 - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x14 }, - - // D3DDevice_DrawVerticesUP+0x2F : mov edx, [edi+0x744] - { 0x2F, 0x8B }, - { 0x30, 0x97 }, - { 0x31, 0x44 }, - { 0x32, 0x07 }, - - // D3DDevice_DrawVerticesUP+0xC1 : cmp esi, 0x80 - { 0xC1, 0x81 }, - { 0xC2, 0xFE }, - { 0xC3, 0x80 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetLight -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetLight, 4134, 12) - - // D3DDevice_SetLight+0x11 : mov edi, [ebp+0x394] - { 0x11, 0x8B }, - { 0x12, 0xBD }, - { 0x13, 0x94 }, - { 0x14, 0x03 }, - - // D3DDevice_SetLight+0x30 : shl eax, 0x04 - { 0x30, 0xC1 }, - { 0x31, 0xE0 }, - { 0x32, 0x04 }, - - // D3DDevice_SetLight+0xBD : rep stosb - { 0xBD, 0xF3 }, - { 0xBE, 0xAB }, - - // D3DDevice_SetLight+0xFD : mov ecx, [ebx+0x68] - { 0xFD, 0x8B }, - { 0xFE, 0x4B }, - { 0xFF, 0x68 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetMaterial // ****************************************************************** @@ -912,415 +234,6 @@ OOVPA_NO_XREF(D3DDevice_GetBackMaterial, 4134, 11) { 0x1A, 0xC2 }, OOVPA_END; -#if 0 // Used 3911 -// ****************************************************************** -// * D3DDevice_LightEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LightEnable, 4134, 13) - - // D3DDevice_LightEnable+0x0F : cmp ebx, [esi+0x0394] - { 0x0F, 0x3B }, - { 0x10, 0x9E }, - { 0x11, 0x94 }, - { 0x12, 0x03 }, - - // D3DDevice_LightEnable+0x6B : test eax, eax - { 0x6B, 0x85 }, - { 0x6C, 0xC0 }, - - // D3DDevice_LightEnable+0x9E : mov eax, [eax+0x8C] - { 0x9E, 0x8B }, - { 0x9F, 0x80 }, - { 0xA0, 0x8C }, - - // D3DDevice_LightEnable+0xBC : jz +0x12 - { 0xBC, 0x74 }, - { 0xBD, 0x12 }, - - // D3DDevice_LightEnable+0xE1 : retn 0x08 - { 0xE1, 0xC2 }, - { 0xE2, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_NormalizeNormals -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_NormalizeNormals, 4134, 8) - - // D3DDevice_SetRenderState_NormalizeNormals+0x07 : mov eax, [esi] - { 0x07, 0x8B }, - { 0x08, 0x06 }, - - // D3DDevice_SetRenderState_NormalizeNormals+0x25 : or [addr], 0x200 - { 0x25, 0x81 }, - { 0x26, 0x0D }, - { 0x2B, 0x00 }, - { 0x2C, 0x02 }, - - // D3DDevice_SetRenderState_NormalizeNormals+0x36 : retn 0x04 - { 0x36, 0xC2 }, - { 0x37, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 4134, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x52 : mov edx, [eax+0x21C0] - { 0x52, 0x8B }, - { 0x53, 0x90 }, - { 0x54, 0x7C }, - { 0x55, 0x20 }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_Reset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Reset, 4134, 10) - - // D3DDevice_Reset+0x15 : mov ecx, ebp - { 0x15, 0x8B }, - { 0x16, 0xCD }, - - // D3DDevice_Reset+0x1E : jnz +0xF5 - { 0x1E, 0x75 }, - { 0x1F, 0xF5 }, - - // D3DDevice_Reset+0x27 : mov esi, [esp+0x14] - { 0x27, 0x8B }, - { 0x28, 0x74 }, - { 0x29, 0x24 }, - { 0x2A, 0x14 }, - - // D3DDevice_Reset+0x37 : jge +0x10 - { 0x37, 0x7D }, - { 0x38, 0x10 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_TwoSidedLighting -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TwoSidedLighting, 4134, 13) - - // D3DDevice_SetRenderState_TwoSidedLighting+0x11 : or edx, 0x1000 - { 0x11, 0x81 }, - { 0x12, 0xCA }, - { 0x13, 0x00 }, - { 0x14, 0x10 }, - - // D3DDevice_SetRenderState_TwoSidedLighting+0x24 : cmp eax, [esi+4]; push edi - { 0x24, 0x3B }, - { 0x25, 0x46 }, - { 0x26, 0x04 }, - { 0x27, 0x57 }, - - // D3DDevice_SetRenderState_TwoSidedLighting+0x53 : add eax, 0x0C - { 0x53, 0x83 }, - { 0x54, 0xC0 }, - { 0x55, 0x0C }, - - // D3DDevice_SetRenderState_TwoSidedLighting+0x60 : retn 0x04 - { 0x60, 0xC2 }, - { 0x61, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_BackFillMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_BackFillMode, 4134, 13) - - // D3DDevice_SetRenderState_BackFillMode+0x1C : jb +0x05 - { 0x1C, 0x72 }, - { 0x1D, 0x05 }, - - // D3DDevice_SetRenderState_BackFillMode+0x35 : mov dword ptr [eax], abs - { 0x35, 0xC7 }, - { 0x36, 0x00 }, - - // D3DDevice_SetRenderState_BackFillMode+0x41 : add eax, 0x0C; mov [esi], eax; mov [abs], edi - { 0x41, 0x83 }, - { 0x42, 0xC0 }, - { 0x43, 0x0C }, - { 0x44, 0x89 }, - { 0x45, 0x06 }, - { 0x46, 0x89 }, - { 0x47, 0x3D }, - - // D3DDevice_SetRenderState_BackFillMode+0x4E : retn 0x04 - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetTextureState_ColorKeyColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTextureState_ColorKeyColor, 4134, 12) - - // D3DDevice_SetTextureState_ColorKeyColor+0x0C : jb +0x05 - { 0x0C, 0x72 }, - { 0x0D, 0x05 }, - - // D3DDevice_SetTextureState_ColorKeyColor+0x27 : add eax, 8; mov [esi], eax; shl ecx, 7 - { 0x27, 0x83 }, - { 0x28, 0xC0 }, - { 0x29, 0x08 }, - { 0x2A, 0x89 }, - { 0x2B, 0x06 }, - { 0x2C, 0xC1 }, - { 0x2D, 0xE1 }, - { 0x2E, 0x07 }, - - // D3DDevice_SetTextureState_ColorKeyColor+0x36 : retn 0x08 - { 0x36, 0xC2 }, - { 0x37, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_FrontFace -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_FrontFace, 4134, 1+10, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_SetRenderState_FrontFace+0x36 : jmp D3DDevice_SetRenderState_CullMode - XREF_ENTRY( 0x36, XREF_D3DDevice_SetRenderState_CullMode ), - - // D3DDevice_SetRenderState_FrontFace+0x09 : cmp eax, [esi+4] - { 0x09, 0x3B }, - { 0x0A, 0x46 }, - { 0x0B, 0x04 }, - - // D3DDevice_SetRenderState_FrontFace+0x13 : mov ecx, [esp+0x08] - { 0x13, 0x8B }, - { 0x14, 0x4C }, - { 0x15, 0x24 }, - { 0x16, 0x08 }, - - // D3DDevice_SetRenderState_FrontFace+0x20 : add eax, 8 - { 0x20, 0x83 }, - { 0x21, 0xC0 }, - { 0x22, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_LogicOp -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LogicOp, 4134, 9) - - // D3DDevice_SetRenderState_LogicOp+0x07 : mov eax, [esi] - { 0x07, 0x8B }, - { 0x08, 0x06 }, - - // D3DDevice_SetRenderState_LogicOp+0x1B : mov dword ptr [eax], 0x417BC - { 0x1B, 0xC7 }, - { 0x1C, 0x00 }, - { 0x1D, 0xBC }, - { 0x1E, 0x17 }, - { 0x1F, 0x04 }, - - // D3DDevice_SetRenderState_LogicOp+0x4F : retn 0x04 - { 0x4F, 0xC2 }, - { 0x50, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_StencilFail -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_StencilFail, 4134, 12) - - // D3DDevice_SetRenderState_StencilFail+0x0C : jb +0x05 - { 0x0C, 0x72 }, - { 0x0D, 0x05 }, - - // D3DDevice_SetRenderState_StencilFail+0x38 : cmp [abs], 0x1E00 - { 0x38, 0x81 }, - { 0x3E, 0x00 }, - { 0x3F, 0x1E }, - - // D3DDevice_SetRenderState_StencilFail+0x47 : mov dword ptr [eax], 0x41D84 - { 0x47, 0xC7 }, - { 0x48, 0x00 }, - { 0x49, 0x84 }, - { 0x4A, 0x1D }, - { 0x4B, 0x04 }, - - // D3DDevice_SetRenderState_StencilFail+0x6A : retn 0x04 - { 0x6A, 0xC2 }, - { 0x6B, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4034 -// ****************************************************************** -// * D3DDevice_SetRenderState_OcclusionCullEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_OcclusionCullEnable, 4134, 12) - - // D3DDevice_SetRenderState_OcclusionCullEnable+0x15 : jb +0x05 - { 0x15, 0x72 }, - { 0x16, 0x05 }, - - // D3DDevice_SetRenderState_OcclusionCullEnable+0x41 : cmp [abs], 0x1E00 - { 0x41, 0x81 }, - { 0x47, 0x00 }, - { 0x48, 0x1E }, - - // D3DDevice_SetRenderState_OcclusionCullEnable+0x50 : mov dword ptr [eax], 0x41D84 - { 0x50, 0xC7 }, - { 0x51, 0x00 }, - { 0x52, 0x84 }, - { 0x53, 0x1D }, - { 0x54, 0x04 }, - - // D3DDevice_SetRenderState_OcclusionCullEnable+0x5F : retn 0x04 - { 0x5F, 0xC2 }, - { 0x60, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4034 -// ****************************************************************** -// * D3DDevice_SetRenderState_StencilCullEnable -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_StencilCullEnable, 4134, 1+12, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_SetRenderState_StencilCullEnable+0x0C : D3D__RenderState[D3DRS_STENCILCULLENABLE] - XREF_ENTRY( 0x0C, XREF_D3DRS_STENCILCULLENABLE ), - - // D3DDevice_SetRenderState_StencilCullEnable+0x15 : jb +0x05 - { 0x15, 0x72 }, - { 0x16, 0x05 }, - - // D3DDevice_SetRenderState_StencilCullEnable+0x41 : cmp [abs], 0x1E00 - { 0x41, 0x81 }, - { 0x47, 0x00 }, - { 0x48, 0x1E }, - - // D3DDevice_SetRenderState_StencilCullEnable+0x50 : mov dword ptr [eax], 0x41D84 - { 0x50, 0xC7 }, - { 0x51, 0x00 }, - { 0x52, 0x84 }, - { 0x53, 0x1D }, - { 0x54, 0x04 }, - - // D3DDevice_SetRenderState_StencilCullEnable+0x5F : retn 0x04 - { 0x5F, 0xC2 }, - { 0x60, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_FillMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_FillMode, 4134, 11) - - // D3DDevice_SetRenderState_FillMode+0x07 : mov eax, [esi] - { 0x07, 0x8B }, - { 0x08, 0x06 }, - - // D3DDevice_SetRenderState_FillMode+0x21 : mov ecx, [esp+0x08] - { 0x21, 0x8B }, - { 0x22, 0x4C }, - { 0x23, 0x24 }, - { 0x24, 0x08 }, - - // D3DDevice_SetRenderState_FillMode+0x25 : jnz +0x02 - { 0x25, 0x75 }, - { 0x26, 0x02 }, - - // D3DDevice_SetRenderState_FillMode+0x35 : add eax, 0x0C - { 0x35, 0x83 }, - { 0x36, 0xC0 }, - { 0x37, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_Dxt1NoiseEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_Dxt1NoiseEnable, 4134, 9) - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x0C : mov eax, [edi+0x2070] - { 0x0C, 0x8B }, - { 0x0D, 0x86 }, - { 0x0E, 0x70 }, - { 0x0F, 0x20 }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x6E : add eax, 0x18 - { 0x6E, 0x83 }, - { 0x6F, 0xC0 }, - { 0x70, 0x18 }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x7C : retn 0x04 - { 0x7C, 0xC2 }, - { 0x7D, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleMask -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMask, 4134, 13) - - // D3DDevice_SetRenderState_MultiSampleMask+0x1C : jb +0x05 - { 0x1C, 0x72 }, - { 0x1D, 0x05 }, - - // D3DDevice_SetRenderState_MultiSampleMask+0x38 : and ecx, 0x0F; shl edx, 0x10 - { 0x38, 0x83 }, - { 0x39, 0xE1 }, - { 0x3A, 0x0F }, - { 0x3B, 0xC1 }, - - // D3DDevice_SetRenderState_MultiSampleMask+0x3E : mov dword ptr [eax], 0x41D7C - { 0x3E, 0xC7 }, - { 0x3F, 0x00 }, - { 0x40, 0x7C }, - { 0x41, 0x1D }, - { 0x42, 0x04 }, - - // D3DDevice_SetRenderState_MultiSampleMask+0x4F : retn 0x04 - { 0x4F, 0xC2 }, - { 0x50, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_MultiSampleMode // ****************************************************************** @@ -1347,182 +260,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMode, 4134, 12) { 0x2B, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleRenderTargetMode -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 4134, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x0B, XREF_D3DRS_MULTISAMPLERENDERTARGETMODE ), // Derived - - // D3DDevice_SetRenderState_MultiSampleRenderTargetMode+0x0F : mov ecx, [eax+0x2070] - { 0x0F, 0x8B }, - { 0x10, 0x88 }, - { 0x11, 0x70 }, - { 0x12, 0x20 }, - - // D3DDevice_SetRenderState_MultiSampleRenderTargetMode+0x15 : cmp ecx, [eax+0x207C] - { 0x15, 0x3B }, - { 0x16, 0x88 }, - { 0x17, 0x7C }, - { 0x18, 0x20 }, - - // D3DDevice_SetRenderState_MultiSampleRenderTargetMode+0x1B : jz +0x0D - { 0x1B, 0x74 }, - { 0x1C, 0x0D }, - - // D3DDevice_SetRenderState_MultiSampleRenderTargetMode+0x2A : retn 0x04 - { 0x2A, 0xC2 }, - { 0x2B, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_ShadowFunc -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_ShadowFunc, 4134, 13) - - // D3DDevice_SetRenderState_ShadowFunc+0x00 : push esi - { 0x00, 0x56 }, - - // D3DDevice_SetRenderState_ShadowFunc+0x09 : cmp eax, [esi+4] - { 0x09, 0x3B }, - { 0x0A, 0x46 }, - { 0x0B, 0x04 }, - - // D3DDevice_SetRenderState_ShadowFunc+0x0C : jb +0x05 - { 0x0C, 0x72 }, - { 0x0D, 0x05 }, - - // D3DDevice_SetRenderState_ShadowFunc+0x1D : lea edx, [ecx-0x0200] - { 0x1D, 0x8D }, - { 0x1E, 0x91 }, - { 0x1F, 0x00 }, - { 0x20, 0xFE }, - - // D3DDevice_SetRenderState_ShadowFunc+0x26 : add eax, 0x08 - { 0x26, 0x83 }, - { 0x27, 0xC0 }, - { 0x28, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_YuvEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_YuvEnable, 4134, 13) - - // D3DDevice_SetRenderState_YuvEnable+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetRenderState_YuvEnable+0x10 : mov eax, [esi] - { 0x10, 0x8B }, - { 0x11, 0x06 }, - - // D3DDevice_SetRenderState_YuvEnable+0x12 : cmp eax, [esi+4] - { 0x12, 0x3B }, - { 0x13, 0x46 }, - { 0x14, 0x04 }, - - // D3DDevice_SetRenderState_YuvEnable+0x15 : jb +0x05 - { 0x15, 0x72 }, - { 0x16, 0x05 }, - - // D3DDevice_SetRenderState_YuvEnable+0x28 : retn 0x04 - { 0x28, 0xC2 }, - { 0x29, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_DrawIndexedVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawIndexedVerticesUP, 4134, 10) - - // D3DDevice_DrawIndexedVerticesUP+0x4A : or edx, 0x800 - { 0x4A, 0x81 }, - { 0x4B, 0xCA }, - { 0x4C, 0x00 }, - { 0x4D, 0x08 }, - - // D3DDevice_DrawIndexedVerticesUP+0x5C : lea edx, [edi+0x6C4] - { 0x5C, 0x8D }, - { 0x5D, 0x97 }, - { 0x5E, 0xC4 }, - { 0x5F, 0x06 }, - - // D3DDevice_DrawIndexedVerticesUP+0x6A : mov eax, 0x10 - { 0x6A, 0xB8 }, - { 0x6B, 0x10 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_SetPixelShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderConstant, 4134, 10) - - // D3DDevice_SetPixelShaderConstant+0x17 : test eax, eax - { 0x17, 0x85 }, - { 0x18, 0xC0 }, - - // D3DDevice_SetPixelShaderConstant+0x32 : add edi, 0x04 - { 0x32, 0x83 }, - { 0x33, 0xC7 }, - { 0x34, 0x04 }, - - // D3DDevice_SetPixelShaderConstant+0x47 : jmp +0x07 - { 0x47, 0xEB }, - { 0x48, 0x07 }, - - // D3DDevice_SetPixelShaderConstant+0xC7 : fstp [esp+??] - { 0xC7, 0xD9 }, - { 0xC8, 0x1C }, - { 0xC9, 0x24 }, -OOVPA_END; -#endif - -#if 0 // Used 3925 -// ****************************************************************** -// * D3DDevice_DeleteVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DeleteVertexShader, 4134, 6) - - { 0x02, 0x24 }, - { 0x06, 0xFF }, - { 0x0A, 0x08 }, - { 0x0E, 0x44 }, - { 0x16, 0xC2 }, - { 0x17, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_SetScreenSpaceOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScreenSpaceOffset, 4134, 7) - - { 0x06, 0x56 }, - { 0x07, 0xD8 }, - { 0x08, 0x44 }, - { 0x09, 0x24 }, - { 0x0A, 0x08 }, - { 0x2E, 0x8B }, - { 0x2F, 0x06 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::SetFence // ****************************************************************** @@ -1545,40 +282,6 @@ OOVPA_XREF(D3D_SetFence, 4134, 12, { 0xAB, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_LineWidth -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LineWidth, 4134, 7) - - { 0x0C, 0x89 }, - { 0x18, 0x04 }, - { 0x28, 0xD9 }, - { 0x32, 0x81 }, - { 0x3F, 0x8B }, - { 0x4C, 0x00 }, - { 0x59, 0x06 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4034 -// ****************************************************************** -// * D3DDevice_SetRenderState_PSTextureModes -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_PSTextureModes, 4134, 10) - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0E, 0x00 }, - { 0x0F, 0x00 }, - { 0x10, 0x81 }, - { 0x11, 0x0D }, - { 0x16, 0x00 }, - { 0x17, 0x40 }, - { 0x1A, 0xA3 }, - { 0x1F, 0xC2 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -1660,267 +363,6 @@ OOVPA_NO_XREF(D3DDevice_SetSwapCallback, 4134, 12) { 0x11, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 4134, 11) - - // D3DDevice_GetTile+0x13 : lea esi, [ecx+eax*8+0x211C] - { 0x13, 0x8D }, - { 0x14, 0xB4 }, - { 0x15, 0xC1 }, - { 0x16, 0x1C }, - { 0x17, 0x21 }, - - // D3DDevice_GetTile+0x1A : mov ecx, 0x06 - { 0x1A, 0xB9 }, - { 0x1B, 0x06 }, - - // D3DDevice_GetTile+0x21 : pop edi; pop esi - { 0x21, 0x5F }, - { 0x22, 0x5E }, - - // D3DDevice_GetTile+0x23 : retn 0x08 - { 0x23, 0xC2 }, - { 0x24, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTile, 4134, 11) - - // D3DDevice_SetTile+0x00 : sub esp, 0x18 - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x18 }, - - // D3DDevice_SetTile+0x16 : cmp [esi+4], eax - { 0x16, 0x39 }, - { 0x17, 0x46 }, - { 0x18, 0x04 }, - - // D3DDevice_SetTile+0x3D : lea edi, [edx+ecx*8+0x211C] - { 0x3D, 0x8D }, - { 0x3E, 0xBC }, - { 0x3F, 0xCB }, - { 0x40, 0x1C }, - { 0x41, 0x21 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4034 -// ****************************************************************** -// * D3DDevice_IsBusy -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_IsBusy, 4134, 7) - - { 0x05, 0x8B }, - { 0x0C, 0x90 }, - { 0x13, 0x44 }, - { 0x1A, 0xFF }, - { 0x21, 0x01 }, - { 0x28, 0x00 }, - { 0x2F, 0xD2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3D::CDevice::KickOff -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_KickOff, 4134, 12) - - // D3D::CDevice::KickOff+0x0D : test al, 4 - { 0x0D, 0xA8 }, - { 0x0E, 0x04 }, - // D3D::CDevice::KickOff+0x11 : mov ecx, [ecx+0x35C] - { 0x11, 0x8B }, - { 0x12, 0x89 }, - { 0x13, 0x5C }, - { 0x14, 0x03 }, - { 0x15, 0x00 }, - { 0x16, 0x00 }, - // D3D::CDevice::KickOff+0x26 : sfence - { 0x26, 0x0F }, - { 0x27, 0xAE }, - { 0x28, 0xF8 }, - // D3D::CDevice::KickOff+0xE3 : retn - { 0xE3, 0xC3 } -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_BlockOnFence -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BlockOnFence, 4134, 7) - - { 0x00, 0x8B }, - { 0x02, 0x24 }, - { 0x04, 0x6A }, - { 0x06, 0x50 }, - { 0x0C, 0xC2 }, - { 0x0D, 0x04 }, - { 0x0E, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetRenderTarget -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetRenderTarget, 4134, 1+9, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x07, XREF_OFFSET_D3DDEVICE_M_RENDERTARGET ), // Derived - - // D3DDevice_GetRenderTarget+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetRenderTarget+0x05 : mov eax, [eax + 0x2070] - { 0x05, 0x8B }, - { 0x06, 0x80 }, - // { 0x07, 0x70 }, // disabled. part of an offset - // { 0x08, 0x20 }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - - // D3DDevice_GetRenderTarget+0x0B : test eax, eax - { 0x0B, 0x85 }, - { 0x0C, 0xC0 }, - - // D3DDevice_GetRenderTarget+0x1D : retn 0x04 - { 0x1D, 0xC2 }, - { 0x1E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 4134, 11) - - // D3DDevice_Release+0x07 : mov eax, [edi+0x043C] - { 0x07, 0x8B }, - { 0x08, 0x87 }, - { 0x09, 0x3C }, - { 0x0A, 0x04 }, - - // D3DDevice_Release+0x0D : cmp eax, 1 - { 0x0D, 0x83 }, - { 0x0E, 0xF8 }, - { 0x0F, 0x01 }, - - // D3DDevice_Release+0x1B : mov ecx, 0x0AB8 - { 0x1B, 0xB9 }, - { 0x1C, 0xB8 }, - { 0x1D, 0x0A }, - - // D3DDevice_Release+0x2E : dec eax - { 0x2E, 0x48 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_GetDisplayMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayMode, 4134, 13) - - // D3DDevice_GetDisplayMode+0x01 : mov esi, ds:[*] - { 0x01, 0x8B }, - { 0x02, 0x35 }, - - // D3DDevice_GetDisplayMode+0x18 : shr ecx, 0x14 - { 0x18, 0xC1 }, - { 0x19, 0xE9 }, - { 0x1A, 0x14 }, - - // D3DDevice_GetDisplayMode+0x50 : shr eax, 0x0C - { 0x50, 0xC1 }, - { 0x51, 0xE8 }, - { 0x52, 0x0C }, - - // D3DDevice_GetDisplayMode+0x6B : and eax, 0x0A - { 0x6B, 0x83 }, - { 0x6C, 0xE0 }, - { 0x6D, 0x0A }, - - // D3DDevice_GetDisplayMode+0x92 : retn 0x04 - { 0x92, 0xC2 }, - { 0x93, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetShaderConstantMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetShaderConstantMode, 4134, 7) - - { 0x1D, 0xFD }, - { 0x3C, 0x8B }, - { 0x5B, 0x0B }, - { 0x7A, 0x56 }, - { 0x99, 0xC0 }, - { 0xB8, 0x00 }, - { 0xD7, 0xC7 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3D::LazySetPointParams -// ****************************************************************** -OOVPA_NO_XREF(D3D_LazySetPointParams, 4134, 7) - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x14 }, - { 0x4E, 0xE0 }, - { 0x73, 0xF6 }, - { 0x74, 0xC4 }, - { 0x75, 0x41 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_SetVertexData2f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData2f, 4134, 14) -/* { 0x07, 0x8B }, - { 0x0C, 0x72 }, - { 0x13, 0x8B }, - { 0x1A, 0x80 }, - { 0x21, 0x0C }, - { 0x28, 0x89 }, - { 0x2F, 0xC0 }, - { 0x36, 0x00 },*/ -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetVertexData4f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4f, 4134, 7) - { 0x0A, 0x46 }, - { 0x16, 0x08 }, - { 0x22, 0x09 }, - { 0x2E, 0x24 }, - { 0x3A, 0x24 }, - { 0x46, 0x8B }, - { 0x52, 0x14 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetFlickerFilter // ****************************************************************** @@ -1949,31 +391,6 @@ OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 4134, 18) { 0x40, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 4134, 11) - - // D3DDevice_SetFlickerFilter+0x1C : mov eax, [eax+0x2268] - { 0x1D, 0x80 }, - { 0x1E, 0x68 }, - { 0x1F, 0x22 }, - - // D3DDevice_SetFlickerFilter+0x22 : push 0; push esi; push 0x0B; push eax - { 0x22, 0x6A }, - { 0x23, 0x00 }, - { 0x24, 0x56 }, - { 0x25, 0x6A }, - { 0x26, 0x0B }, - { 0x27, 0x50 }, - - // D3DDevice_SetFlickerFilter+0x3F : retn 0x04 - { 0x3F, 0xC2 }, - { 0x40, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetSoftDisplayFilter // ****************************************************************** @@ -2005,37 +422,6 @@ OOVPA_NO_XREF(D3DDevice_SetSoftDisplayFilter, 4134, 13) OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPalette -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPalette, 4134, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PALETTES ), // Derived - - // D3DDevice_SetPalette+0x0D : mov eax, [edi+esi*4+0x0A88] - { 0x0D, 0x8B }, - { 0x0E, 0x84 }, - { 0x0F, 0xBE }, - { 0x10, 0x88 }, - { 0x11, 0x0A }, - - // D3DDevice_SetPalette+0x76 : add edi, 0x41B20 - { 0x76, 0x81 }, - { 0x77, 0xC7 }, - { 0x78, 0x20 }, - { 0x79, 0x1B }, - { 0x7A, 0x04 }, - - // D3DDevice_SetPalette+0x8A : retn 0x08 - { 0x8A, 0xC2 }, - { 0x8B, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_EnableOverlay // ****************************************************************** @@ -2061,52 +447,6 @@ OOVPA_NO_XREF(D3DDevice_EnableOverlay, 4134, 11) { 0x61, 0x04 }, OOVPA_END; -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 4134, 11) - - { 0x02, 0x08 }, - { 0x1F, 0x7C }, - { 0x6F, 0x8B }, - - { 0x80, 0x8B }, - { 0x81, 0x54 }, - { 0x82, 0x24 }, - { 0x83, 0x20 }, - { 0x84, 0x8B }, - { 0x85, 0x3F }, - { 0x86, 0x83 }, - { 0x87, 0xE1 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 4134, 11) - - // D3DDevice_UpdateOverlay+0x0F : mov [eax+0x2A88], ecx - { 0x0F, 0x89 }, - { 0x10, 0x88 }, - { 0x11, 0x88 }, - { 0x12, 0x2A }, - - // D3DDevice_UpdateOverlay+0x86 : and ecx, 0xFFFFFFFE - { 0x86, 0x83 }, - { 0x87, 0xE1 }, - { 0x88, 0xFE }, - - // D3DDevice_UpdateOverlay+0xA2 : mov [esi+0x8920], ecx - { 0xA2, 0x89 }, - { 0xA3, 0x8E }, - { 0xA4, 0x20 }, - { 0xA5, 0x89 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetModelView // ****************************************************************** @@ -2160,23 +500,6 @@ OOVPA_XREF(D3D_MakeRequestedSpace, 4134, 28, // Also for 4361, 4627 { 0x1F, 0x03 }, OOVPA_END; -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_RunPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_RunPushBuffer, 4134, 8) - - { 0x1E, 0x07 }, - { 0x3E, 0x00 }, - { 0x5E, 0x46 }, - { 0x7E, 0x24 }, - { 0x9E, 0x18 }, - { 0xBE, 0x74 }, - { 0xE2, 0x8B }, - { 0xFE, 0x24 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BeginPush // ****************************************************************** @@ -2195,22 +518,6 @@ OOVPA_NO_XREF(D3DDevice_BeginPush, 4134, 10) { 0x17, 0xE8 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_BeginPush -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginPush, 4134, 7) - - { 0x07, 0x6A }, - { 0x08, 0x00 }, - { 0x10, 0x8B }, - { 0x12, 0x24 }, - { 0x17, 0xE8 }, - { 0x1C, 0x8B }, - { 0x21, 0x01 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_EndPush // ****************************************************************** @@ -2234,23 +541,6 @@ OOVPA_XREF(D3DDevice_EndPush, 4134, 1+11, { 0x0E, 0x00 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_EndPush -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPush, 4134, 8) - - { 0x00, 0x8B }, - { 0x02, 0x24 }, - { 0x04, 0x8B }, - { 0x0A, 0x89 }, - { 0x0B, 0x01 }, - { 0x0C, 0xC2 }, - { 0x0D, 0x04 }, - { 0x0E, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BeginPushBuffer // ****************************************************************** @@ -2269,46 +559,6 @@ OOVPA_NO_XREF(D3DDevice_BeginPushBuffer, 4134, 10) { 0x57, 0x83 }, OOVPA_END; -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_EndPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 4134, 13) // Up to 5849 - - { 0x01, 0x56 }, - { 0x11, 0x8D }, - - { 0x2E, 0x8D }, - { 0x2F, 0x4C }, - { 0x30, 0x11 }, - { 0x31, 0x04 }, - { 0x32, 0x89 }, - { 0x33, 0x48 }, - { 0x34, 0x0C }, - { 0x35, 0x8B }, - { 0x36, 0x86 }, - - { 0x6D, 0x8B }, - { 0x6E, 0x86 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_EndPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 4134, 7) - - { 0x11, 0x8D }, - { 0x24, 0x8B }, - { 0x37, 0x58 }, - { 0x4A, 0xFF }, - { 0x5D, 0xF7 }, - { 0x70, 0x03 }, - { 0x83, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetModelView // ****************************************************************** @@ -2411,32 +661,6 @@ OOVPA_NO_XREF(D3DDevice_InsertCallback, 4134, 13) { 0x28, 0x08 }, OOVPA_END; -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_LoadVertexShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LoadVertexShaderProgram, 4134, 16) - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x53 }, - { 0x05, 0x0F }, - { 0x06, 0xB7 }, - { 0x07, 0x58 }, - { 0x08, 0x02 }, - { 0x09, 0x55 }, - { 0x0A, 0x8B }, - { 0x0B, 0x2D }, - - { 0x14, 0xE3 }, - { 0x15, 0x02 }, - { 0x16, 0xF6 }, - { 0x17, 0xC1 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetShaderConstantMode // ****************************************************************** @@ -2461,31 +685,6 @@ OOVPA_NO_XREF(D3DDevice_GetShaderConstantMode, 4134, 16) { 0x13, 0x00 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderInput -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderInput, 4134, 15) - - { 0x05, 0xC9 }, - - { 0x0B, 0x74 }, - { 0x11, 0x00 }, - { 0x12, 0x00 }, - { 0x13, 0x89 }, - { 0x14, 0x11 }, - { 0x15, 0x8B }, - { 0x16, 0x4C }, - { 0x17, 0x24 }, - { 0x18, 0x04 }, - { 0x19, 0x85 }, - { 0x1A, 0xC9 }, - { 0x1B, 0x74 }, - { 0x1C, 0x08 }, - { 0x1D, 0x8B }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_RunVertexStateShader // ****************************************************************** @@ -2500,50 +699,6 @@ OOVPA_NO_XREF(D3DDevice_RunVertexStateShader, 4134, 7) { 0x4B, 0x08 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderDeclaration -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderDeclaration, 4134, 14) - - { 0x04, 0x8A }, - { 0x13, 0xC7 }, - { 0x14, 0x01 }, - { 0x15, 0x00 }, - { 0x16, 0x00 }, - { 0x17, 0x00 }, - { 0x18, 0x00 }, - { 0x19, 0x33 }, - { 0x1A, 0xC0 }, - { 0x1B, 0x83 }, - { 0x1C, 0xC4 }, - { 0x1D, 0x10 }, - { 0x1E, 0xC2 }, - { 0x1F, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderFunction -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderFunction, 4134, 12) - - { 0x01, 0x8B }, - { 0x09, 0x75 }, - { 0x0A, 0x10 }, - { 0x0B, 0x8B }, - { 0x0C, 0x44 }, - { 0x0D, 0x24 }, - { 0x0E, 0x10 }, - { 0x0F, 0xC7 }, - { 0x10, 0x00 }, - { 0x11, 0x00 }, - { 0x12, 0x00 }, - { 0x1C, 0x56 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetProjectionViewportMatrix // ****************************************************************** @@ -2583,48 +738,6 @@ OOVPA_NO_XREF(D3DDevice_SetVertexData4ub, 4134, 7) { 0x44, 0x89 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DCubeTexture_GetCubeMapSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DCubeTexture_GetCubeMapSurface, 4134, 7) - - { 0x09, 0x44 }, - { 0x14, 0x24 }, - { 0x1F, 0x50 }, - { 0x2A, 0x50 }, - { 0x35, 0x8B }, - { 0x40, 0x24 }, - { 0x4B, 0x5E }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 4134, 10) - - // D3DDevice_GetViewport+0x05 : push esi; push edi - { 0x05, 0x56 }, - { 0x06, 0x57 }, - - // D3DDevice_GetViewport+0x0B : lea esi, [eax+0x9D0] - { 0x0B, 0x8D }, - { 0x0C, 0xB0 }, - { 0x0D, 0xD0 }, - { 0x0E, 0x09 }, - - // D3DDevice_GetViewport+0x11 : mov ecx, 6 - { 0x11, 0xB9 }, - { 0x12, 0x06 }, - - // D3DDevice_GetViewport+0x1A : retn 0x04 - { 0x1A, 0xC2 }, - { 0x1B, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CaptureStateBlock // ****************************************************************** @@ -2646,27 +759,6 @@ OOVPA_NO_XREF(D3DDevice_CaptureStateBlock, 4134, 12) { 0x6A, 0xE8 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_CaptureStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CaptureStateBlock, 4134, 9) - - // D3DDevice_CaptureStateBlock+0x36 : mov eax, [edi+eax*4+0x0A78] - { 0x36, 0x8B }, - { 0x37, 0x84 }, - { 0x38, 0x87 }, - { 0x39, 0x78 }, - { 0x3A, 0x0A }, - - // D3DDevice_CaptureStateBlock+0xA9 : cmp dword ptr [esi+0x0C], 0 - { 0xA9, 0x83 }, - { 0xAA, 0x7E }, - { 0xAB, 0x0C }, - { 0xAC, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BeginStateBlock // ****************************************************************** @@ -2688,32 +780,6 @@ OOVPA_XREF(D3DDevice_BeginStateBlock, 4134, 1+5, { 0x08, 0x20 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_ClearStateBlockFlags -// ****************************************************************** -OOVPA_XREF(D3D_ClearStateBlockFlags, 4134, 9,//OK - - XREF_D3D_ClearStateBlockFlags, - XRefZero) - - // D3D_ClearStateBlockFlags+0x0A : movzx ecx, 0x82 - { 0x0A, 0xB9 }, - { 0x0B, 0x82 }, - - // D3D_ClearStateBlockFlags+0x16 : mov ecx, [edx+0x0390] - { 0x16, 0x8B }, - { 0x17, 0x8A }, - { 0x18, 0x90 }, - { 0x19, 0x03 }, - - // D3D_ClearStateBlockFlags+0x2F : add ecx, 0x90 - { 0x2F, 0x81 }, - { 0x30, 0xC1 }, - { 0x31, 0x90 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_EndStateBlock // ****************************************************************** @@ -2807,27 +873,6 @@ OOVPA_NO_XREF(D3DDevice_AddRef, 4134, 10) { 0x0F, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by another 4134 version -// ****************************************************************** -// * D3DDevice_AddRef -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_AddRef, 4134, 10) - - { 0x00, 0xA1 }, - - { 0x05, 0x8B }, - { 0x09, 0x00 }, - { 0x0D, 0x88 }, - - { 0x0F, 0x04 }, - { 0x10, 0x00 }, - { 0x11, 0x00 }, - { 0x12, 0x8B }, - { 0x13, 0xC1 }, - { 0x14, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVertexData2s // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4361.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4361.inl index 66a2ad743..6be1574a5 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4361.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4361.inl @@ -32,200 +32,6 @@ // * // ****************************************************************** -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * CMiniport::InitHardware -// ****************************************************************** -OOVPA_NO_XREF(CMiniport_InitHardware, 4361, 24) - { 0x00, 0x55 }, - { 0x01, 0x8B }, - { 0x02, 0xEC }, - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x10 }, - { 0x06, 0x53 }, - { 0x07, 0x56 }, - { 0x08, 0x8B }, - { 0x09, 0xF1 }, - { 0x0A, 0x56 }, - { 0x0B, 0x68 }, - - { 0x10, 0x8D }, - { 0x11, 0x86 }, - { 0x12, 0x84 }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x00 }, - { 0x16, 0x50 }, - { 0x17, 0xFF }, - { 0x18, 0x15 }, - - { 0x1D, 0x80 }, - { 0x1E, 0xA6 }, - { 0x1F, 0xDC }, -OOVPA_END; -#endif - -#if 0 // Moved to 4034 -// ****************************************************************** -// * CMiniport::CreateCtxDmaObject -// ****************************************************************** -OOVPA_NO_XREF(CMiniport_CreateCtxDmaObject, 4361, 32) // Also for 4627, 5344, 5558, 5659, 5788, 5849, 5933 - { 0x00, 0x55 }, - { 0x01, 0x8B }, - { 0x02, 0xEC }, - { 0x03, 0x51 }, - { 0x04, 0x51 }, - { 0x05, 0x53 }, - { 0x06, 0x56 }, - { 0x07, 0x57 }, - { 0x08, 0x33 }, - { 0x09, 0xC0 }, - { 0x0A, 0x50 }, - { 0x0B, 0x89 }, - { 0x0C, 0x45 }, - { 0x0D, 0xF8 }, - { 0x0E, 0x89 }, - { 0x0F, 0x45 }, - { 0x10, 0xFC }, - { 0x11, 0x8D }, - { 0x12, 0x45 }, - { 0x13, 0xFC }, - { 0x14, 0x50 }, - { 0x15, 0x8D }, - { 0x16, 0x45 }, - { 0x17, 0xF8 }, - { 0x18, 0x50 }, - { 0x19, 0xFF }, - { 0x1A, 0x75 }, - { 0x1B, 0x10 }, - { 0x1C, 0x8B }, - { 0x1D, 0xD1 }, - { 0x1E, 0x8B }, - { 0x1F, 0x3A }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * Direct3D_CreateDevice -// ****************************************************************** -OOVPA_NO_XREF(Direct3D_CreateDevice, 4361, 8) - // Direct3D_CreateDevice+0x07 : jnz +0x0A - { 0x07, 0x75 }, - { 0x08, 0x0A }, - - // Direct3D_CreateDevice+0x86 : repe stosd - { 0x86, 0xF3 }, - { 0x87, 0xAB }, - - // Direct3D_CreateDevice+0x89 : mov eax, esi - { 0x89, 0x8B }, - { 0x8A, 0xC6 }, - - // Direct3D_CreateDevice+0xA0 : retn 0x18 - { 0xA0, 0xC2 }, - { 0xA1, 0x18 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3D_MakeRequestedSpace -// ****************************************************************** -OOVPA_XREF(D3D_MakeRequestedSpace, 4361, 28, // Also for 4627 - - XREF_D3D_MakeRequestedSpace, - XRefZero) - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x08 }, - { 0x03, 0x56 }, - { 0x04, 0x8B }, - { 0x05, 0x35 }, - - { 0x0A, 0xF6 }, - { 0x0B, 0x46 }, - { 0x0C, 0x08 }, - { 0x0D, 0x04 }, - { 0x0E, 0x8B }, - { 0x0F, 0x0E }, - { 0x10, 0x57 }, - { 0x11, 0x74 }, - { 0x12, 0x26 }, - { 0x13, 0x8B }, - { 0x14, 0x86 }, - { 0x15, 0x50 }, - { 0x16, 0x03 }, - { 0x17, 0x00 }, - { 0x18, 0x00 }, - { 0x19, 0x8B }, - { 0x1A, 0x78 }, - { 0x1B, 0x04 }, - { 0x1C, 0x8B }, - { 0x1D, 0x96 }, - { 0x1E, 0x54 }, - { 0x1F, 0x03 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4242 -// ****************************************************************** -// * D3DDevice_SetVerticalBlankCallback -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVerticalBlankCallback, 4242, 12) - - // D3DDevice_SetVerticalBlankCallback+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetVerticalBlankCallback+0x04 : mov ecx, [addr] - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - // D3DDevice_SetVerticalBlankCallback+0x0A : mov [ecx+0x242C], eax - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0C, 0x30 }, // 2C vs 30 - { 0x0D, 0x24 }, - - // D3DDevice_SetVerticalBlankCallback+0x10 : retn 0x04 - { 0x10, 0xC2 }, - { 0x11, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4242 -// ****************************************************************** -// * D3DDevice_SetSwapCallback -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSwapCallback, 4242, 12) - - // D3DDevice_SetSwapCallback+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetSwapCallback+0x04 : mov ecx, [addr] - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - // D3DDevice_SetSwapCallback+0x0A : mov [ecx+0x242C], eax - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0C, 0x2C }, // 2C vs 30 - { 0x0D, 0x24 }, - - // D3DDevice_SetSwapCallback+0x10 : retn 0x04 - { 0x10, 0xC2 }, - { 0x11, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_GetAdapterDisplayMode // ****************************************************************** @@ -253,361 +59,6 @@ OOVPA_NO_XREF(D3D_GetAdapterDisplayMode, 4361, 13) { 0xBE, 0x08 }, OOVPA_END; -#if 0 // Moved to 4242 -// ****************************************************************** -// * D3DDevice_AddRef -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_AddRef, 4242, 10) - - // D3DDevice_AddRef+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_AddRef+0x05 : mov ecx, [eax+0x0440] - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x40 }, - { 0x08, 0x04 }, - - // D3DDevice_AddRef+0x0B : inc ecx - { 0x0B, 0x41 }, - - // D3DDevice_AddRef+0x05 : mov [eax+0x0440], ecx - { 0x0C, 0x89 }, - { 0x0D, 0x88 }, - { 0x0E, 0x40 }, - { 0x0F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3D_ClearStateBlockFlags -// ****************************************************************** -OOVPA_XREF(D3D_ClearStateBlockFlags, 4361, 9, - - XREF_D3D_ClearStateBlockFlags, - XRefZero) - - // D3D_ClearStateBlockFlags+0x0A : movzx ecx, 0x82 - { 0x0A, 0xB9 }, - { 0x0B, 0x82 }, - - // D3D_ClearStateBlockFlags+0x16 : mov ecx, [edx+0x0390] - { 0x16, 0x8B }, - { 0x17, 0x8A }, - { 0x18, 0x90 }, - { 0x19, 0x03 }, - - // D3D_ClearStateBlockFlags+0x2F : add ecx, 0x90 - { 0x2F, 0x81 }, - { 0x30, 0xC1 }, - { 0x31, 0x90 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D_RecordStateBlock -// ****************************************************************** -OOVPA_XREF(D3D_RecordStateBlock, 4361, 10, - - XREF_D3D_RecordStateBlock, - XRefZero) - - // D3D_RecordStateBlock+0x0F : mov eax, [edi+0x0390] - { 0x0F, 0x8B }, - { 0x10, 0x87 }, - { 0x11, 0x90 }, - { 0x12, 0x03 }, - - // D3D_RecordStateBlock+0x95 : add ebx, ecx - { 0x95, 0x03 }, - { 0x96, 0xD9 }, - - // D3D_RecordStateBlock+0xD5 : mov dword ptr [esi+0x0C], 1 - { 0xD5, 0xC7 }, - { 0xD6, 0x46 }, - { 0xD7, 0x0C }, - { 0xD8, 0x01 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_BeginStateBlock -// ****************************************************************** -OOVPA_XREF(D3DDevice_BeginStateBlock, 4361, 1+5, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_BeginStateBlock+0x0F : call [ClearStateBlockFlags] - XREF_ENTRY( 0x0A, XREF_D3D_ClearStateBlockFlags ), - - // D3DDevice_BeginStateBlock+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_BeginStateBlock+0x05 : mov [eax+8], 0x20 - { 0x05, 0x83 }, - { 0x06, 0x48 }, - { 0x07, 0x08 }, - { 0x08, 0x20 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_CaptureStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CaptureStateBlock, 4361, 9) - - // D3DDevice_CaptureStateBlock+0x36 : mov eax, [edi+eax*4+0x0A78] - { 0x36, 0x8B }, - { 0x37, 0x84 }, - { 0x38, 0x87 }, - { 0x39, 0x78 }, - { 0x3A, 0x0A }, - - // D3DDevice_CaptureStateBlock+0xA9 : cmp dword ptr [esi+0x0C], 0 - { 0xA9, 0x83 }, - { 0xAA, 0x7E }, - { 0xAB, 0x0C }, - { 0xAC, 0x00 }, -OOVPA_END; -#endif - -#if 0 //same as 3925 -// ****************************************************************** -// * D3DDevice_DeleteStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DeleteStateBlock, 4361, 7) - - { 0x11, 0x76 }, - { 0x24, 0x3B }, - { 0x37, 0xE8 }, - { 0x4A, 0x50 }, - { 0x5D, 0x74 }, - { 0x70, 0x06 }, - { 0x83, 0xEB }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_ApplyStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_ApplyStateBlock, 4361, 10) - - // D3DDevice_ApplyStateBlock+0x00 : push ebx - { 0x00, 0x53 }, - - // D3DDevice_ApplyStateBlock+0x0E : lea esi, [edi+0x3C] - { 0x0E, 0x8D }, - { 0x0F, 0x77 }, - { 0x10, 0x3C }, - - // D3DDevice_ApplyStateBlock+0x34 : cmp [edi+8], ebp - { 0x34, 0x39 }, - { 0x35, 0x6F }, - { 0x36, 0x08 }, - - // D3DDevice_ApplyStateBlock+0x9E : sub eax, 0x60 - { 0x9E, 0x83 }, - { 0x9F, 0xE8 }, - { 0xA0, 0x60 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_EndStateBlock -// ****************************************************************** -OOVPA_XREF(D3DDevice_EndStateBlock, 4361, 1+5, - - XRefNoSaveIndex, - XRefOne) - - // D3DDevice_EndStateBlock+0x0F : call [ClearStateBlockFlags] - XREF_ENTRY( 0x0A, XREF_D3D_RecordStateBlock ), - - // D3DDevice_EndStateBlock+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_EndStateBlock+0x05 : and [eax+8], 0xFFFFFFDF - { 0x05, 0x83 }, - { 0x06, 0x60 }, - { 0x07, 0x08 }, - { 0x08, 0xDF }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_GetRenderTarget -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetRenderTarget, 4361, 1+9, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x07, XREF_OFFSET_D3DDEVICE_M_RENDERTARGET ), // Derived - - // D3DDevice_GetRenderTarget+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetRenderTarget+0x05 : mov eax, [eax + 0x2070] - { 0x05, 0x8B }, - { 0x06, 0x80 }, - { 0x07, 0x70 }, - { 0x08, 0x20 }, - - // D3DDevice_GetRenderTarget+0x11 : mov [ecx], eax - { 0x11, 0x89 }, - { 0x12, 0x01 }, - - // D3DDevice_GetRenderTarget+0x1D : retn 0x04 - { 0x1D, 0xC2 }, - { 0x1E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 4361, 10) - - // D3DDevice_GetViewport+0x05 : push esi; push edi - { 0x05, 0x56 }, - { 0x06, 0x57 }, - - // D3DDevice_GetViewport+0x0B : lea esi, [eax+0x9D0] - { 0x0B, 0x8D }, - { 0x0C, 0xB0 }, - { 0x0D, 0xD0 }, - { 0x0E, 0x09 }, - - // D3DDevice_GetViewport+0x11 : mov ecx, 6 - { 0x11, 0xB9 }, - { 0x12, 0x06 }, - - // D3DDevice_GetViewport+0x1A : retn 0x04 - { 0x1A, 0xC2 }, - { 0x1B, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetTextureState_BorderColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTextureState_BorderColor, 4361, 15) - - // D3DDevice_SetTextureState_BorderColor+0x0C : jb +0x05 - { 0x0C, 0x72 }, - { 0x0D, 0x05 }, - - // D3DDevice_SetTextureState_BorderColor+0x19 : shl edx, 6 - { 0x19, 0xC1 }, - { 0x1A, 0xE2 }, - { 0x1B, 0x06 }, - - // D3DDevice_SetTextureState_BorderColor+0x2B : add eax, 8; mov [esi], eax; shl ecx, 7 - { 0x2B, 0x83 }, - { 0x2C, 0xC0 }, - { 0x2D, 0x08 }, - { 0x2E, 0x89 }, - { 0x2F, 0x06 }, - { 0x30, 0xC1 }, - { 0x31, 0xE1 }, - { 0x32, 0x07 }, - - // D3DDevice_SetTextureState_BorderColor+0x3A : retn 0x08 - { 0x3A, 0xC2 }, - { 0x3B, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SwitchTexture -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SwitchTexture, 4361, 10) - - // D3DDevice_SwitchTexture+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_SwitchTexture+0x05 : add eax, 0x0C - { 0x05, 0x83 }, - { 0x06, 0xC0 }, - { 0x07, 0x0C }, - - // D3DDevice_SwitchTexture+0x0E : jnb +0x15 - { 0x0E, 0x73 }, - { 0x0F, 0x15 }, - - // D3DDevice_SwitchTexture+0x22 : retn 0x04 - { 0x22, 0xC2 }, - { 0x23, 0x04 }, - - // D3DDevice_SwitchTexture+0x2E : jmp +0xD0 - { 0x2E, 0xEB }, - { 0x2F, 0xD0 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_Swap -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Swap, 4361, 11) - - // D3DDevice_Swap+0x10 : mov ebx, 5 - { 0x10, 0xBB }, - { 0x11, 0x05 }, - - // D3DDevice_Swap+0x1D : test bl, 3 - { 0x1D, 0xF6 }, - { 0x1E, 0xC3 }, - { 0x1F, 0x03 }, - - // D3DDevice_Swap+0x46 : inc dword ptr [esi+0x2AC4] - { 0x46, 0xFF }, - { 0x47, 0x86 }, - { 0x48, 0xC4 }, - { 0x49, 0x2A }, - - // D3DDevice_Swap+0xAE : retn 4 - { 0xAE, 0xC2 }, - { 0xAF, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 4361, 11) - - // D3DDevice_UpdateOverlay+0x0F : mov [eax+0x2A90], ecx - { 0x0F, 0x89 }, - { 0x10, 0x88 }, - { 0x11, 0x90 }, - { 0x12, 0x2A }, - - // D3DDevice_UpdateOverlay+0x86 : and ecx, 0xFFFFFFFE - { 0x86, 0x83 }, - { 0x87, 0xE1 }, - { 0x88, 0xFE }, - - // D3DDevice_UpdateOverlay+0xA2 : mov [esi+0x8920], ecx - { 0xA2, 0x89 }, - { 0xA3, 0x8E }, - { 0xA4, 0x20 }, - { 0xA5, 0x89 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -633,502 +84,11 @@ OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 4361, 11) { 0x23, 0xC3 }, OOVPA_END; -#if 0 // Moved to 4242 -// ****************************************************************** -// * D3DDevice_SetTextureState_TexCoordIndex -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetTextureState_TexCoordIndex, 4361, 1+10, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x19, XREF_D3DTSS_TEXCOORDINDEX ), // Derived - - // D3DDevice_SetTextureState_TexCoordIndex+0x0D : shl eax, 0x07 - { 0x0D, 0xC1 }, - { 0x0E, 0xE0 }, - { 0x0F, 0x07 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0x24 : cmp eax, ecx - { 0x24, 0x3B }, - { 0x25, 0xC1 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0x6B : mov esi, 0x2400 - { 0x6B, 0xBE }, - { 0x6D, 0x24 }, - - // D3DDevice_SetTextureState_TexCoordIndex+0xB3 : shl edx, 0x04 - { 0xB3, 0xC1 }, - { 0xB4, 0xE2 }, - { 0xB5, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DResource_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_Release, 4361, 13) - - // D3DResource_Release+0x09 : and ecx, 0xFFFF - { 0x09, 0x81 }, - { 0x0A, 0xE1 }, - { 0x0B, 0xFF }, - { 0x0C, 0xFF }, - - // D3DResource_Release+0x0F : cmp ecx, 1 - { 0x0F, 0x83 }, - { 0x10, 0xF9 }, - { 0x11, 0x01 }, - - // D3DResource_Release+0x12 : jnz +0x2E - { 0x12, 0x75 }, - { 0x13, 0x2E }, - - // D3DResource_Release+0x2F : test eax, 0x780000 - { 0x2F, 0xA9 }, - { 0x32, 0x78 }, - - // D3DResource_Release+0x4B : retn 0x04 - { 0x4B, 0xC2 }, - { 0x4C, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DResource_IsBusy -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_IsBusy, 4361, 11) - - // D3DResource_IsBusy+0x24 : test eax, 0x780000 - { 0x24, 0xA9 }, - { 0x25, 0x00 }, - { 0x26, 0x00 }, - { 0x27, 0x78 }, - - // D3DResource_IsBusy+0x35 : jnz +0x41 - { 0x35, 0x75 }, - { 0x36, 0x41 }, - - // D3DResource_IsBusy+0x4E : mov eax, [ecx+0x14] - { 0x4E, 0x8B }, - { 0x4F, 0x41 }, - { 0x50, 0x14 }, - - // D3DResource_IsBusy+0x76 : jnb +0x09 - { 0x76, 0x73 }, - { 0x77, 0x09 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DBaseTexture_GetLevelCount -// ****************************************************************** -OOVPA_NO_XREF(D3DBaseTexture_GetLevelCount, 4361, 13) - - // D3DBaseTexture_GetLevelCount+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DBaseTexture_GetLevelCount+0x04 : movzx eax, [eax+0x0E] - { 0x04, 0x0F }, - { 0x05, 0xB6 }, - { 0x06, 0x40 }, - { 0x07, 0x0E }, - - // D3DBaseTexture_GetLevelCount+0x08 : and eax, 0x0F - { 0x08, 0x83 }, - { 0x09, 0xE0 }, - { 0x0A, 0x0F }, - - // D3DBaseTexture_GetLevelCount+0x0B : retn 0x04 - { 0x0B, 0xC2 }, - { 0x0C, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetShaderConstantMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetShaderConstantMode, 4361, 12) - - // D3DDevice_SetShaderConstantMode+0x26 : mov [ebx+0x20D8], eax - { 0x26, 0x89 }, - { 0x27, 0x83 }, - { 0x28, 0x18 }, - { 0x29, 0x20 }, - - // D3DDevice_SetShaderConstantMode+0x50 : mov dword ptr [eax+0x04], 0x3C - { 0x50, 0xC7 }, - { 0x51, 0x40 }, - { 0x52, 0x04 }, - { 0x53, 0x3C }, - - // D3DDevice_SetShaderConstantMode+0xE7 : add esi, 0x0124 - { 0xE7, 0x81 }, - { 0xE8, 0xC6 }, - { 0xE9, 0x24 }, - { 0xEA, 0x01 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 4361, 11) - - // D3DDevice_SetFlickerFilter+0x1C : mov eax, [eax+0x2268] - { 0x1D, 0x80 }, - { 0x1E, 0x7C }, - { 0x1F, 0x22 }, - - // D3DDevice_SetFlickerFilter+0x22 : push 0; push esi; push 0x0B; push eax - { 0x22, 0x6A }, - { 0x23, 0x00 }, - { 0x24, 0x56 }, - { 0x25, 0x6A }, - { 0x26, 0x0B }, - { 0x27, 0x50 }, - - // D3DDevice_SetFlickerFilter+0x3F : retn 0x04 - { 0x3F, 0xC2 }, - { 0x40, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_PrimeVertexCache -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PrimeVertexCache, 4361, 7) - - { 0x0E, 0xE8 }, - { 0x1E, 0xEE }, - { 0x2E, 0xC1 }, - { 0x3E, 0x24 }, - { 0x4E, 0x8B }, - { 0x5E, 0x04 }, - { 0x6E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_BeginPush -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginPush, 4361, 7) - - { 0x07, 0x6A }, - { 0x08, 0x00 }, - { 0x10, 0x8B }, - { 0x12, 0x24 }, - { 0x17, 0xE8 }, - { 0x1C, 0x8B }, - { 0x21, 0x01 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_EndPush -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPush, 4361, 8) - - { 0x00, 0x8B }, - { 0x02, 0x24 }, - { 0x04, 0x8B }, - { 0x0A, 0x89 }, - { 0x0B, 0x01 }, - { 0x0C, 0xC2 }, - { 0x0D, 0x04 }, - { 0x0E, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_Begin -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Begin, 4361, 7) - - { 0x07, 0xE8 }, - { 0x0C, 0x8B }, - { 0x13, 0xE8 }, - { 0x1A, 0x24 }, - { 0x21, 0x00 }, - { 0x28, 0x89 }, - { 0x2F, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_SetVertexData4ub -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4ub, 4361, 7) - - { 0x08, 0x06 }, - { 0x13, 0x8B }, - { 0x1C, 0x04 }, - { 0x26, 0x0F }, - { 0x30, 0x24 }, - { 0x3A, 0x24 }, - { 0x44, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 4361, 8) - - { 0x07, 0x8B }, - { 0x0C, 0x00 }, - { 0x13, 0xCF }, - { 0x1A, 0xC0 }, - { 0x25, 0xA3 }, - { 0x2A, 0xF3 }, - { 0x2F, 0x89 }, - { 0x36, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_BeginPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginPushBuffer, 4361, 7) - - { 0x0B, 0xCE }, - { 0x1B, 0x89 }, - { 0x25, 0x00 }, - { 0x32, 0x06 }, - { 0x3F, 0x03 }, - { 0x4C, 0x04 }, - { 0x59, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_EndPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 4361, 7) - - { 0x11, 0x8D }, - { 0x24, 0x8B }, - { 0x37, 0x58 }, - { 0x4A, 0xFF }, - { 0x5D, 0xF7 }, - { 0x70, 0x03 }, - { 0x83, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3925 -// ****************************************************************** -// * D3DDevice_GetPushBufferOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetPushBufferOffset, 4361, 7) - - { 0x14, 0xB8 }, - { 0x2A, 0x8B }, - { 0x40, 0x47 }, - { 0x56, 0x89 }, - { 0x6C, 0xAB }, - { 0x82, 0x04 }, - { 0x98, 0x89 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_RunPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_RunPushBuffer, 4361, 8) - - { 0x1E, 0x07 }, - { 0x3E, 0x00 }, - { 0x5E, 0x46 }, - { 0x7E, 0x24 }, - { 0x9E, 0x18 }, - { 0xBE, 0x74 }, - { 0xE2, 0x8B }, - { 0xFE, 0x24 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_CreateCubeTexture -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateCubeTexture, 4361, 8) - - { 0x03, 0x18 }, - { 0x08, 0x8B }, - { 0x0D, 0x8B }, - { 0x12, 0x00 }, - { 0x17, 0x50 }, - { 0x1C, 0x6A }, - { 0x25, 0xC2 }, - { 0x26, 0x18 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DCubeTexture_GetCubeMapSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DCubeTexture_GetCubeMapSurface, 4361, 7) - - { 0x09, 0x44 }, - { 0x14, 0x24 }, - { 0x1F, 0x50 }, - { 0x2A, 0x50 }, - { 0x35, 0x8B }, - { 0x40, 0x24 }, - { 0x4B, 0x5E }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetScissors -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScissors, 4361, 10) - - // D3DDevice_SetScissors+0x0E : mov ebx, [esp+28h+arg_0] - { 0x04, 0x8B }, - { 0x05, 0x5C }, - { 0x06, 0x24 }, - { 0x07, 0x2C }, - - // D3DDevice_SetScissors+0x0E : test ebx, ebx - { 0x08, 0x85 }, - { 0x09, 0xDB }, - - // D3DDevice_SetScissors+0x0E : mov edx, [ebp+9D8h] - { 0x1B, 0x8B }, - { 0x1C, 0x95 }, - { 0x1D, 0xD8 }, - { 0x1E, 0x09 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetPixelShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderProgram, 4361, 10) - - { 0x00, 0x8B }, - { 0x01, 0x54 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x85 }, - { 0x05, 0xD2 }, - { 0x29, 0x89 }, - { 0x2A, 0x4C }, - { 0x2B, 0x24 }, - { 0x2C, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_GetVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShader, 4361, 7) - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x84 }, - { 0x0A, 0x00 }, - { 0x0D, 0x24 }, - { 0x10, 0x0A }, - { 0x13, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetVertexDataColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexDataColor, 4361, 7) - - { 0x08, 0x06 }, - { 0x14, 0x8B }, - { 0x1C, 0x19 }, - { 0x26, 0xB6 }, - { 0x30, 0x00 }, - { 0x3A, 0xFF }, - { 0x44, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetVertexShaderInput -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShaderInput, 4361, 8) - - { 0x1E, 0x83 }, - { 0x3E, 0x10 }, - { 0x5E, 0x00 }, - { 0x7E, 0x24 }, - { 0x9E, 0x89 }, - { 0xBE, 0x81 }, - { 0xDE, 0xC6 }, - { 0xFE, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetVertexData2s -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData2s, 4361, 8) - - { 0x08, 0x06 }, - { 0x0E, 0xE8 }, - { 0x16, 0x08 }, - { 0x17, 0x8D }, - { 0x18, 0x14 }, - { 0x19, 0x8D }, - { 0x1A, 0x00 }, - { 0x1F, 0xBF }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetVertexData4s -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4s, 4361, 9) - - { 0x08, 0x06 }, - { 0x0E, 0xE8 }, - { 0x16, 0x08 }, - { 0x17, 0x8D }, - { 0x18, 0x14 }, - { 0x19, 0xCD }, - { 0x1A, 0x80 }, - { 0x1B, 0x19 }, - { 0x1F, 0xBF }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BeginVisibilityTest@0 // ****************************************************************** OOVPA_NO_XREF(D3DDevice_BeginVisibilityTest, 4361, 7) + { 0x07, 0x8B }, { 0x0A, 0x46 }, { 0x13, 0xC7 }, @@ -1138,21 +98,6 @@ OOVPA_NO_XREF(D3DDevice_BeginVisibilityTest, 4361, 7) { 0x28, 0x06 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_EndVisibilityTest@4 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndVisibilityTest, 4361, 7) - { 0x0B, 0x8B }, - { 0x16, 0x5E }, - { 0x22, 0x07 }, - { 0x2E, 0x00 }, - { 0x3A, 0x81 }, - { 0x46, 0x89 }, - { 0x55, 0x5F }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetTexture // ****************************************************************** @@ -1199,34 +144,6 @@ OOVPA_XREF(D3DDevice_SetTexture, 4361, 1+26, { 0x1F, 0x24 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3D::BlockOnTime -// ****************************************************************** -OOVPA_XREF(D3D_BlockOnTime, 4361, 13, - - XREF_D3D_BlockOnTime, - XRefZero) - - { 0x07, 0x3D }, - - { 0x17, 0xD1 }, - { 0x18, 0x8B }, - { 0x19, 0xC8 }, - { 0x1A, 0x2B }, - { 0x1B, 0xCE }, - { 0x1C, 0x3B }, - { 0x1D, 0xCA }, - { 0x1E, 0x0F }, - { 0x1F, 0x83 }, - - { 0x2F, 0x53 }, - - { 0x38, 0x8B }, - { 0x44, 0xE8 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SelectVertexShaderDirect // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4432.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4432.inl index e17765776..eca316bb4 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4432.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4432.inl @@ -32,128 +32,6 @@ // * // ****************************************************************** -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * Direct3D_CreateDevice -// ****************************************************************** -OOVPA_NO_XREF(Direct3D_CreateDevice, 4432, 8) - - // Direct3D_CreateDevice+0x07 : jnz +0x0A - { 0x07, 0x75 }, - { 0x08, 0x0A }, - - // Direct3D_CreateDevice+0x86 : repe stosd - { 0x86, 0xF3 }, - { 0x87, 0xAB }, - - // Direct3D_CreateDevice+0x89 : mov eax, esi - { 0x89, 0x8B }, - { 0x8A, 0xC6 }, - - // Direct3D_CreateDevice+0xA0 : retn 0x18 - { 0xA0, 0xC2 }, - { 0xA1, 0x18 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_GetRenderTarget -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetRenderTarget, 4432, 1+11, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x07, XREF_OFFSET_D3DDEVICE_M_RENDERTARGET ), // Derived - - // D3DDevice_GetRenderTarget+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetRenderTarget+0x05 : mov eax, [eax + 0x2070] - { 0x05, 0x8B }, - { 0x06, 0x80 }, - { 0x07, 0x70 }, - { 0x08, 0x20 }, - - // D3DDevice_GetRenderTarget+0x15 : push eax - { 0x15, 0x50 }, - - // D3DDevice_GetRenderTarget+0x13 : jz + 0x06 - { 0x13, 0x74 }, - { 0x14, 0x06 }, - - // D3DDevice_GetRenderTarget+0x16 : call [addr] - { 0x16, 0xE8 }, - - // D3DDevice_GetRenderTarget+0x1D : retn 0x04 - { 0x1D, 0xC2 }, - { 0x1E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetDepthStencilSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDepthStencilSurface, 4432, 11) - - // D3DDevice_GetDepthStencilSurface+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetDepthStencilSurface+0x05 : mov eax, [eax + 0x2074] - { 0x05, 0x8B }, - { 0x06, 0x80 }, - { 0x07, 0x74 }, - { 0x08, 0x20 }, - - // D3DDevice_GetDepthStencilSurface+0x15 : push eax - { 0x15, 0x50 }, - - // D3DDevice_GetDepthStencilSurface+0x13 : jnz +0x0B - { 0x13, 0x74 }, - { 0x14, 0x0B }, - - // D3DDevice_GetDepthStencilSurface+0x16 : call [addr] - { 0x16, 0xE8 }, - - // D3DDevice_GetDepthStencilSurface+0x25 : retn 0x04 - { 0x25, 0xC2 }, - { 0x26, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPixelShader -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPixelShader, 4432, 1+10, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PIXELSHADER ), // Derived - - // D3DDevice_SetPixelShader+0x22 : or ecx, 0x4800 - { 0x22, 0x81 }, - { 0x23, 0xC9 }, - { 0x24, 0x00 }, - { 0x25, 0x48 }, - - // D3DDevice_SetPixelShader+0x3A : or eax, 0x2000 - { 0x3A, 0x0D }, - { 0x3C, 0x20 }, - - // D3DDevice_SetPixelShader+0x78 : retn 0x04 - { 0x78, 0xC2 }, - { 0x79, 0x04 }, - - // D3DDevice_SetPixelShader+0xE3 : rep movsd - { 0xE3, 0xF3 }, - { 0xE4, 0xA5 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_ZEnable // ****************************************************************** @@ -175,198 +53,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_ZEnable, 4432, 12) { 0x60, 0x2A }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4432 version -// ****************************************************************** -// * D3DDevice_SetRenderState_ZEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_ZEnable, 4432, 13) - - // D3DDevice_SetRenderState_ZEnable+0x0C : jb +0x05 - { 0x0C, 0x72 }, - { 0x0D, 0x05 }, - - // D3DDevice_SetRenderState_ZEnable+0x1B : mov ecx, [esi+0x2074] - { 0x1B, 0x8B }, - { 0x1C, 0x8E }, - { 0x1D, 0x74 }, - { 0x1E, 0x20 }, - - // D3DDevice_SetRenderState_ZEnable+0x2E : mov dword ptr [eax], 0x4030C - { 0x2E, 0xC7 }, - { 0x2F, 0x00 }, - { 0x30, 0x0C }, - { 0x31, 0x03 }, - { 0x32, 0x04 }, - - // D3DDevice_SetRenderState_ZEnable+0x8C : retn 0x04 - { 0x8C, 0xC2 }, - { 0x8D, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleAntiAlias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleAntiAlias, 4432, 9) - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x04 : push esi - { 0x04, 0x56 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x12 : call [abs] - { 0x12, 0xE8 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x38 : shl ecx, 0x10 - { 0x38, 0xC1 }, - { 0x39, 0xE1 }, - { 0x3A, 0x10 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x44 : or ecx, edx - { 0x44, 0x0B }, - { 0x45, 0xCA }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x4F : retn 0x04 - { 0x4F, 0xC2 }, - { 0x50, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_LineWidth -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LineWidth, 4432, 10) - - // D3DDevice_SetRenderState_LineWidth+0x15 : fmul dword ptr [esi+0x460] - { 0x15, 0xD8 }, - { 0x16, 0x8E }, - { 0x17, 0x60 }, - { 0x18, 0x04 }, - - // D3DDevice_SetRenderState_LineWidth+0x32 : cmp edi, 0x1FF - { 0x32, 0x81 }, - { 0x33, 0xFF }, - - // D3DDevice_SetRenderState_LineWidth+0x3A : mov edi, 0x1FF - { 0x3A, 0xBF }, - { 0x3B, 0xFF }, - - // D3DDevice_SetRenderState_LineWidth+0x62 : retn 0x04 - { 0x62, 0xC2 }, - { 0x63, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPalette -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPalette, 4432, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PALETTES ), // Derived - - // D3DDevice_SetPalette+0x0D : mov eax, [edi+esi*4+0x0A88] - { 0x0D, 0x8B }, - { 0x0E, 0x84 }, - { 0x0F, 0xBE }, - { 0x10, 0x88 }, - { 0x11, 0x0A }, - - // D3DDevice_SetPalette+0x76 : add esi, 0x41B20 - { 0x76, 0x81 }, - { 0x77, 0xC7 }, - { 0x78, 0x20 }, - { 0x79, 0x1B }, - { 0x7A, 0x04 }, - - // D3DDevice_SetPalette+0x8A : retn 0x08 - { 0x8A, 0xC2 }, - { 0x8B, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_Swap -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Swap, 4432, 11) - - // D3DDevice_Swap+0x10 : mov ebx, 5 - { 0x10, 0xBB }, - { 0x11, 0x05 }, - - // D3DDevice_Swap+0x1D : test bl, 3 - { 0x1D, 0xF6 }, - { 0x1E, 0xC3 }, - { 0x1F, 0x03 }, - - // D3DDevice_Swap+0x46 : inc dword ptr [esi+0x2AD8] - { 0x46, 0xFF }, - { 0x47, 0x86 }, - { 0x48, 0xD8 }, - { 0x49, 0x2A }, - - // D3DDevice_Swap+0xAE : retn 4 - { 0xAE, 0xC2 }, - { 0xAF, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4531 -// ****************************************************************** -// * D3DDevice_Swap -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Swap, 4531, 11) - - // D3DDevice_Swap+0x10 : mov ebx, 5 - { 0x10, 0xBB }, - { 0x11, 0x05 }, - - // D3DDevice_Swap+0x1D : test bl, 3 - { 0x1D, 0xF6 }, - { 0x1E, 0xC3 }, - { 0x1F, 0x03 }, - - // D3DDevice_Swap+0x46 : inc dword ptr [esi+0x2AD8] - { 0x46, 0xFF }, - { 0x47, 0x86 }, - { 0x48, 0xD8 }, - { 0x49, 0x2A }, - - // D3DDevice_Swap+0xAE : retn 4 - { 0xB9, 0xC2 }, - { 0xBA, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 4432, 11) - - // D3DDevice_UpdateOverlay+0x0F : mov [eax+0x2AA4], ecx - { 0x0F, 0x89 }, - { 0x10, 0x88 }, - { 0x11, 0xA4 }, - { 0x12, 0x2A }, - - // D3DDevice_UpdateOverlay+0x86 : and ecx, 0xFFFFFFFE - { 0x86, 0x83 }, - { 0x87, 0xE1 }, - { 0x88, 0xFE }, - - // D3DDevice_UpdateOverlay+0xA2 : mov [esi+0x8920], ecx - { 0xA2, 0x89 }, - { 0xA3, 0x8E }, - { 0xA4, 0x20 }, - { 0xA5, 0x89 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -444,251 +130,6 @@ OOVPA_NO_XREF(D3DDevice_SetVerticalBlankCallback, 4432, 12) { 0x11, 0x04 }, OOVPA_END; -#if 0 // Moved to 4531 -// ****************************************************************** -// * D3DDevice_SetRenderState_BackFillMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_BackFillMode, 4531, 9) - - { 0x04, 0x56 }, - { 0x10, 0x8B }, - { 0x11, 0x06 }, - { 0x12, 0x3B }, - { 0x13, 0x46 }, - { 0x14, 0x04 }, - { 0x41, 0x83 }, - { 0x42, 0xC0 }, - { 0x43, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_BeginPush -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginPush, 4432, 6) - - { 0x09, 0x8B }, - { 0x0A, 0xCE }, - { 0x10, 0x8B }, - { 0x11, 0x44 }, - { 0x17, 0xE8 }, - { 0x1D, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 4432, 11) - - { 0x07, 0x8B }, - { 0x08, 0x87 }, - { 0x09, 0x40 }, - { 0x0A, 0x04 }, - { 0x0B, 0x00 }, - { 0x0C, 0x00 }, - { 0x1B, 0xB9 }, - { 0x1C, 0xC0 }, - { 0x1D, 0x0A }, - { 0x1E, 0x00 }, - { 0x1F, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DTexture_GetSurfaceLevel -// ****************************************************************** -OOVPA_NO_XREF(D3DTexture_GetSurfaceLevel, 4432, 14) - - // D3DTexture_GetSurfaceLevel+0x00 : sub esp, 0x0C - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x0C }, - - // D3DTexture_GetSurfaceLevel+0x04 : mov esi, [esp+0x14] - { 0x04, 0x8B }, - { 0x07, 0x14 }, - - // D3DTexture_GetSurfaceLevel+0x04 : lea eax, [esp+0x14] - { 0x08, 0x8D }, - { 0x0B, 0x14 }, - - // D3DTexture_GetSurfaceLevel+0x17 : mov edx, [esp+0x24] - { 0x17, 0x8B }, - { 0x1A, 0x24 }, - - // D3DTexture_GetSurfaceLevel+0x1B : lea eax, [esp+0x18] - { 0x1B, 0x8D }, - { 0x1E, 0x18 }, - - // D3DTexture_GetSurfaceLevel+0x29 : call [abs] - { 0x29, 0xE8 }, - - // D3DTexture_GetSurfaceLevel+0x4C : retn 0x0C - { 0x4C, 0xC2 }, - { 0x4D, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_GetDisplayMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayMode, 4432, 12) - - // D3DDevice_GetDisplayMode+0x01 : mov esi, ds:[*] - { 0x01, 0x8B }, - { 0x02, 0x35 }, - - // D3DDevice_GetDisplayMode+0x18 : shr ecx, 0x14 - { 0x18, 0xC1 }, - { 0x19, 0xE9 }, - { 0x1A, 0x14 }, - - // D3DDevice_GetDisplayMode+0x50 : shr eax, 0x0C - { 0x50, 0xC1 }, - { 0x51, 0xE8 }, - { 0x52, 0x0C }, - - // D3DDevice_GetDisplayMode+0x6B : and eax, 0x0A - { 0x6B, 0x83 }, - { 0x6C, 0xE0 }, - - // D3DDevice_GetDisplayMode+0x92 : retn 4 - { 0x92, 0xC2 }, - { 0x93, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 4432, 11) - - // D3DDevice_SetFlickerFilter+0x1C : mov eax, [eax+0x227C] - { 0x1D, 0x80 }, - { 0x1E, 0x7C }, - { 0x1F, 0x22 }, - - // D3DDevice_SetFlickerFilter+0x22 : push 0; push esi; push 0x0B; push eax - { 0x22, 0x6A }, - { 0x23, 0x00 }, - { 0x24, 0x56 }, - { 0x25, 0x6A }, - { 0x26, 0x0B }, - { 0x27, 0x50 }, - - // D3DDevice_SetFlickerFilter+0x3F : retn 0x04 - { 0x3F, 0xC2 }, - { 0x40, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSoftDisplayFilter, 4432, 12) - - // D3DDevice_SetSoftDisplayFilter+0x25 : mov edx, [eax+0x227C] - { 0x25, 0x8B }, - { 0x26, 0x90 }, - { 0x27, 0x7C }, - { 0x28, 0x22 }, - - // D3DDevice_SetSoftDisplayFilter+0x2B : push 0; push esi; push 0x0E; push edx - { 0x2B, 0x6A }, - { 0x2C, 0x00 }, - { 0x2D, 0x56 }, - { 0x2E, 0x6A }, - { 0x2F, 0x0E }, - { 0x30, 0x52 }, - - // D3DDevice_SetSoftDisplayFilter+0x4E : retn 0x04 - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4531 -// ****************************************************************** -// * D3DVertexBuffer_Lock -// ****************************************************************** -OOVPA_NO_XREF(D3DVertexBuffer_Lock, 4531, 11) - - // D3DVertexBuffer_Lock+0x01 : mov bl, [esp+0x18] - { 0x01, 0x8A }, - { 0x02, 0x5C }, - { 0x03, 0x24 }, - { 0x04, 0x18 }, - - // D3DVertexBuffer_Lock+0x09 : jnz +0x24 - { 0x09, 0x75 }, - { 0x0A, 0x24 }, - - // D3DVertexBuffer_Lock+0x2F : test bl, 0xA0 - { 0x2F, 0xF6 }, - { 0x30, 0xC3 }, - { 0x31, 0xA0 }, - - // D3DVertexBuffer_Lock+0x50 : retn 0x14 - { 0x54, 0xC2 }, - { 0x55, 0x14 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_GetProjectionViewportMatrix -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetProjectionViewportMatrix, 4432, 7) - - { 0x02, 0x35 }, - { 0x07, 0x57 }, - { 0x0A, 0x24 }, - { 0x0E, 0x70 }, - { 0x12, 0xB9 }, - { 0x16, 0x00 }, - { 0x1A, 0x5E }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_SetModelView -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetModelView, 4432, 7) - - { 0x15, 0x25 }, - { 0x2F, 0x81 }, - { 0x43, 0x43 }, - { 0x5A, 0x04 }, - { 0x72, 0x8D }, - { 0x88, 0x00 }, - { 0x9F, 0x75 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetDisplayFieldStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayFieldStatus, 4432, 7) - - { 0x0B, 0x8B }, - { 0x0C, 0x4C }, - { 0x0D, 0x24 }, - { 0x0E, 0x04 }, - { 0x1E, 0x56 }, - { 0x25, 0x33 }, - { 0x26, 0xD2 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetViewportOffsetAndScale // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4531.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4531.inl index 6e6ddbd33..d66e0e875 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4531.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4531.inl @@ -57,24 +57,6 @@ OOVPA_NO_XREF(D3DDevice_Swap, 4531, 11) { 0xBA, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetRenderState_BackFillMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_BackFillMode, 4531, 9) - - { 0x04, 0x56 }, - { 0x10, 0x8B }, - { 0x11, 0x06 }, - { 0x12, 0x3B }, - { 0x13, 0x46 }, - { 0x14, 0x04 }, - { 0x41, 0x83 }, - { 0x42, 0xC0 }, - { 0x43, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DVertexBuffer_Lock // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4627.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4627.inl index 83914a4d0..9370cf622 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4627.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4627.inl @@ -32,30 +32,6 @@ // * // ****************************************************************** -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * Direct3D_CreateDevice -// ****************************************************************** -OOVPA_NO_XREF(Direct3D_CreateDevice, 4627, 8) - - // Direct3D_CreateDevice+0x07 : jnz +0x0A - { 0x07, 0x75 }, - { 0x08, 0x0A }, - - // Direct3D_CreateDevice+0x80 : repe stosd - { 0x80, 0xF3 }, - { 0x81, 0xAB }, - - // Direct3D_CreateDevice+0x83 : mov eax, esi - { 0x83, 0x8B }, - { 0x84, 0xC6 }, - - // Direct3D_CreateDevice+0x90 : retn 0x18 - { 0x90, 0xC2 }, - { 0x91, 0x18 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_CreateDeviceX (Direct3D_CreateDevice from D3D8LTCG) // ****************************************************************** @@ -101,36 +77,6 @@ OOVPA_NO_XREF(D3DDevice_BeginVisibilityTest, 4627, 11) { 0x26, 0x0C }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_EndVisibilityTest -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndVisibilityTest, 4627, 12) - - // D3DDevice_EndVisibilityTest+0x00 : mov eax, [esp+4] - { 0x00, 0x8B }, - - // D3DDevice_EndVisibilityTest+0x0B : mov esi, eax - { 0x0B, 0x8B }, - { 0x0C, 0xF0 }, - - // D3DDevice_EndVisibilityTest+0x0D : test esi, esi - { 0x0D, 0x85 }, - { 0x0E, 0xF6 }, - - // D3DDevice_EndVisibilityTest+0x0D : jnz +0x09 - { 0x0F, 0x75 }, - { 0x10, 0x09 }, - - // D3DDevice_EndVisibilityTest+0x11 : mov eax, 0x8007000E - { 0x11, 0xB8 }, - { 0x12, 0x0E }, - { 0x13, 0x00 }, - { 0x14, 0x07 }, - { 0x15, 0x80 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_GetAdapterDisplayMode // ****************************************************************** @@ -154,35 +100,6 @@ OOVPA_NO_XREF(D3D_GetAdapterDisplayMode, 4627, 13) { 0x31, 0x08 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3D_GetAdapterDisplayMode -// ****************************************************************** -OOVPA_NO_XREF(D3D_GetAdapterDisplayMode, 4627, 13) - - // D3D_GetAdapterDisplayMode+0x08 : mov eax, 0x8876086C - { 0x08, 0xB8 }, - { 0x09, 0x6C }, - { 0x0A, 0x08 }, - { 0x0B, 0x76 }, - { 0x0C, 0x88 }, - - // D3D_GetAdapterDisplayMode+0x19 : jnz +0x18 - { 0x19, 0x75 }, - { 0x1A, 0x18 }, - - // D3D_GetAdapterDisplayMode+0x33 : mov ecx, [esi+0x21C4] - { 0x33, 0x8B }, - { 0x34, 0x8E }, - { 0x35, 0xC4 }, - { 0x36, 0x21 }, - - // D3D_GetAdapterDisplayMode+0xB6 : retn 0x08 - { 0xB6, 0xC2 }, - { 0xB7, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_KickOffAndWaitForIdle // ****************************************************************** @@ -255,29 +172,6 @@ OOVPA_NO_XREF(D3DDevice_BeginPush, 4627, 7) { 0x44, 0x52 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetViewport, 4627, 9) - - // D3DDevice_SetViewport+0x0A : mov eax, [esi+0x21B4] - { 0x0A, 0x8B }, - { 0x0B, 0x86 }, - { 0x0C, 0xB4 }, - { 0x0D, 0x21 }, - - // D3DDevice_SetViewport+0x63 : shl edi, cl - { 0x63, 0xD3 }, - { 0x64, 0xE7 }, - - // D3DDevice_SetViewport+0xDF : and ecx, 0x0F - { 0xDF, 0x83 }, - { 0xE0, 0xE1 }, - { 0xE1, 0x0F }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_CommonSetRenderTarget // ****************************************************************** @@ -430,32 +324,6 @@ OOVPA_NO_XREF(D3DDevice_SetGammaRamp, 4627, 17) // Up to 5849 { 0x77, 0x00 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetShaderConstantMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetShaderConstantMode, 4627, 12) - - // D3DDevice_SetShaderConstantMode+0x26 : mov [ebx+0x20D8], eax - { 0x26, 0x89 }, - { 0x27, 0x83 }, - { 0x28, 0xD8 }, - { 0x29, 0x20 }, - - // D3DDevice_SetShaderConstantMode+0x50 : mov dword ptr [eax+0x04], 0x3C - { 0x50, 0xC7 }, - { 0x51, 0x40 }, - { 0x52, 0x04 }, - { 0x53, 0x3C }, - - // D3DDevice_SetShaderConstantMode+0xE7 : add esi, 0x0124 - { 0xE7, 0x81 }, - { 0xE8, 0xC6 }, - { 0xE9, 0x24 }, - { 0xEA, 0x01 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CopyRects // ****************************************************************** @@ -664,63 +532,6 @@ OOVPA_XREF(D3DDevice_GetDepthStencilSurface2, 4627, 1+20, { 0x1D, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetDepthStencilSurface2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDepthStencilSurface2, 4627, 10) - - // D3DDevice_GetDepthStencilSurface2+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetDepthStencilSurface2+0x05 : push esi - { 0x05, 0x56 }, - - // D3DDevice_GetDepthStencilSurface2+0x06 : mov esi, [eax + 0x21B8] - { 0x06, 0x8B }, - { 0x07, 0xB0 }, - { 0x08, 0xB8 }, - { 0x09, 0x21 }, - - // D3DDevice_GetDepthStencilSurface2+0x0E : jnz +0x04 - { 0x0E, 0x75 }, - { 0x0F, 0x04 }, - - // D3DDevice_GetDepthStencilSurface2+0x15 : call [addr] - { 0x15, 0xE8 }, - - // D3DDevice_GetDepthStencilSurface2+0x1D : retn - { 0x1D, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 4627, 11) - - // D3DDevice_GetTile+0x13 : lea esi, [ecx+eax*8+0x2260] - { 0x13, 0x8D }, - { 0x14, 0xB4 }, - { 0x15, 0xC1 }, - { 0x16, 0x60 }, - { 0x17, 0x22 }, - - // D3DDevice_GetTile+0x1A : mov ecx, 0x06 - { 0x1A, 0xB9 }, - { 0x1B, 0x06 }, - - // D3DDevice_GetTile+0x21 : pop edi; pop esi - { 0x21, 0x5F }, - { 0x22, 0x5E }, - - // D3DDevice_GetTile+0x23 : retn 0x08 - { 0x23, 0xC2 }, - { 0x24, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_SetTileNoWait // ****************************************************************** @@ -804,35 +615,6 @@ OOVPA_XREF(D3DDevice_CreateIndexBuffer, 4627, 1+10, { 0x1F, 0xC2 }, OOVPA_END; -#if 0 // Moved to 4831 -// ****************************************************************** -// * D3DDevice_SetPixelShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderConstant, 4831, 13) - - // D3DDevice_SetPixelShaderConstant+0x1E : test eax, eax - { 0x1E, 0x85 }, - { 0x1F, 0xC0 }, - - // D3DDevice_SetPixelShaderConstant+0x32 : mov [ebp+0x10], eax - { 0x32, 0x89 }, - { 0x33, 0x45 }, - { 0x34, 0x10 }, - - // D3DDevice_SetPixelShaderConstant+0x84 : or eax, ebx - { 0x84, 0x0B }, - { 0x85, 0xC3 }, - - // D3DDevice_SetPixelShaderConstant+0xBD : mov dword ptr [eax], 0x406A0 - { 0xBD, 0xC7 }, - { 0xBE, 0x00 }, - { 0xBF, 0x60 }, - { 0xC0, 0x0A }, - { 0xC1, 0x04 }, - { 0xC2, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVertexShaderConstant // ****************************************************************** @@ -1027,60 +809,6 @@ OOVPA_XREF(D3DDevice_SetPixelShader, 4627, 1+16, { 0x76, 0x83 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetPixelShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShader, 4627, 10) - - // D3DDevice_SetPixelShader+0x26 : or ecx, 0x4800 - { 0x26, 0x81 }, - { 0x27, 0xC9 }, - { 0x28, 0x00 }, - { 0x29, 0x48 }, - - // D3DDevice_SetPixelShader+0x3E : or eax, 0x2000 - { 0x3E, 0x0D }, - { 0x40, 0x20 }, - - // D3DDevice_SetPixelShader+0x7D : retn 0x04 - { 0x7D, 0xC2 }, - { 0x7E, 0x04 }, - - // D3DDevice_SetPixelShader+0xDE : rep movsd - { 0xDE, 0xF3 }, - { 0xDF, 0xA5 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetPixelShader -// ****************************************************************** -/* blueshogun96 8/7/08 - for MGS2 :)*/ -OOVPA_NO_XREF(D3DDevice_SetPixelShader, 4721, 10) - - // D3DDevice_SetPixelShader+0x26 : or ecx, 0x4800 - { 0x26, 0x81 }, - { 0x27, 0xC9 }, - { 0x28, 0x00 }, - { 0x29, 0x48 }, - - // D3DDevice_SetPixelShader+0x3E : or eax, 0x2000 - { 0x3E, 0x0D }, - { 0x40, 0x20 }, - - // D3DDevice_SetPixelShader+0x7D : retn 0x04 - { 0x7D, 0xC2 }, - { 0x7E, 0x04 }, - - // D3DDevice_SetPixelShader+0xDE : rep movsd - { 0xF4, 0xF3 }, - { 0xF5, 0xA5 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreateTexture2 // ****************************************************************** @@ -1112,38 +840,6 @@ OOVPA_NO_XREF(D3DDevice_CreateTexture2, 4627, 13) { 0xAF, 0x1C }, OOVPA_END; -#if 0 // Moved to 4831 -// ****************************************************************** -// * D3DDevice_CreateTexture2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateTexture2, 4831, 12) - - // D3DDevice_CreateTexture2+0x02 : lea eax, [esp+0x20] - { 0x04, 0x8D }, - { 0x07, 0x20 }, - - // D3DDevice_CreateTexture2+0x0E : setz dl - { 0x10, 0x0F }, - { 0x11, 0x94 }, - { 0x12, 0xC2 }, - - // D3DDevice_CreateTexture2+0x2A : push 0x00 - { 0x2E, 0x6A }, - { 0x2F, 0x00 }, - - // D3DDevice_CreateTexture2+0x53 : call [abs] - { 0x57, 0xE8 }, - - // D3DDevice_CreateTexture2+0x78 : jnz +0x0D - { 0x7C, 0x75 }, - { 0x7D, 0x0D }, - - // D3DDevice_CreateTexture2+0xAE : retn 0x1C - { 0x88, 0xC2 }, - { 0x89, 0x1C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreateTexture // ****************************************************************** @@ -1164,197 +860,6 @@ OOVPA_NO_XREF(D3DDevice_CreateTexture, 4627, 11) { 0x38, 0xC2 }, OOVPA_END; -#if 0 // Used 4034 instead in 4627, 4721, 4831, 4928 -// ****************************************************************** -// * D3DDevice_SetIndices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetIndices, 4627, 11) - - // D3DDevice_SetIndices+0x0F : jz +0x10 - { 0x0F, 0x74 }, - { 0x10, 0x10 }, - - // D3DDevice_SetIndices+0x1F : jmp +0x0A - { 0x1F, 0xEB }, - { 0x20, 0x0A }, - - // D3DDevice_SetIndices+0x58 : mov [esi+0x1C], ecx - { 0x58, 0x89 }, - { 0x59, 0x4E }, - { 0x5A, 0x1C }, - - // D3DDevice_SetIndices+0x78 : mov [esi+0x038C], ebx - { 0x78, 0x89 }, - { 0x79, 0x9E }, - { 0x7A, 0x8C }, - { 0x7B, 0x03 }, -OOVPA_END; -#endif - -// ****************************************************************** -// * D3DDevice_SetTexture -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTexture_unused, 4627, 10) // Deprecated in favor of 4627 below - - // D3DDevice_SetTexture+0x0F : push edi - { 0x0F, 0x57 }, - - // D3DDevice_SetTexture+0x21 : jz +0x1E - { 0x21, 0x74 }, - { 0x22, 0x1E }, - - // D3DDevice_SetTexture+0x33 : test ecx, 0x78FFFF - { 0x33, 0xA9 }, - { 0x34, 0xFF }, - { 0x36, 0x78 }, - - // D3DDevice_SetTexture+0x38 : mov [edi], ecx - { 0x38, 0x89 }, - { 0x39, 0x0F }, - - // D3DDevice_SetTexture+0xD9 : jz +0x4D - { 0xD9, 0x74 }, - { 0xDA, 0x4D }, -OOVPA_END; - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetTexture -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetTexture, 4627, 1+28, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x13, XREF_OFFSET_D3DDEVICE_M_TEXTURES ), // Derived - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x08 }, - { 0x03, 0x53 }, - { 0x04, 0x56 }, - { 0x05, 0x8B }, - { 0x06, 0x74 }, - { 0x07, 0x24 }, - { 0x08, 0x14 }, - { 0x09, 0x57 }, - { 0x0A, 0x8B }, - { 0x0B, 0x3D }, - - { 0x10, 0x8B }, - { 0x11, 0x84 }, - { 0x12, 0xB7 }, - { 0x13, 0x38 }, - { 0x14, 0x0B }, - { 0x15, 0x00 }, - { 0x16, 0x00 }, - { 0x17, 0x85 }, - { 0x18, 0xC0 }, - { 0x19, 0x89 }, - { 0x1A, 0x7C }, - { 0x1B, 0x24 }, - { 0x1C, 0x0C }, - { 0x1D, 0x89 }, - { 0x1E, 0x44 }, - { 0x1F, 0x24 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4831 -// ****************************************************************** -// * D3DDevice_SetTexture -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetTexture, 4928, 1+15, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x13, XREF_OFFSET_D3DDEVICE_M_TEXTURES ), // Derived - -#if 0 // PatrickvL preparations // 1+33, - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x08 }, - { 0x03, 0x53 }, - { 0x04, 0x56 }, - { 0x05, 0x8B }, - { 0x06, 0x74 }, - { 0x07, 0x24 }, - { 0x08, 0x14 }, - { 0x09, 0x57 }, - { 0x0A, 0x8B }, - { 0x0B, 0x3D }, // TODO : See if this should be value 0x56? - - { 0x10, 0x8B }, - { 0x11, 0x84 }, - { 0x12, 0xB7 }, - { 0x13, 0x38 }, - { 0x14, 0x0B }, - { 0x15, 0x00 }, - { 0x16, 0x00 }, - { 0x17, 0x85 }, - { 0x18, 0xC0 }, - { 0x19, 0x89 }, - { 0x1A, 0x7C }, - { 0x1B, 0x24 }, - { 0x1C, 0x0C }, - { 0x1D, 0x89 }, - { 0x1E, 0x44 }, - { 0x1F, 0x24 }, -#else - { 0x0B, 0x56 }, - - { 0x21, 0x74 }, - { 0x22, 0x20 }, - - { 0x33, 0xF7 }, - { 0x34, 0xC1 }, - { 0x36, 0xFF }, - - { 0x39, 0x89 }, - { 0x3A, 0x10 }, - - { 0x50, 0x75 }, - { 0x51, 0x47 }, -#endif - { 0x52, 0x8B }, - { 0x53, 0x45 }, - { 0x54, 0x00 }, - { 0x55, 0x3B }, - { 0x56, 0x45 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_GetDisplayMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayMode, 4627, 12) - - // D3DDevice_GetDisplayMode+0x01 : mov esi, ds:[*] - { 0x01, 0x8B }, - { 0x02, 0x35 }, - - // D3DDevice_GetDisplayMode+0x18 : shr ecx, 0x14 - { 0x18, 0xC1 }, - { 0x19, 0xE9 }, - { 0x1A, 0x14 }, - - // D3DDevice_GetDisplayMode+0x50 : shr eax, 0x0C - { 0x50, 0xC1 }, - { 0x51, 0xE8 }, - { 0x52, 0x0C }, - - // D3DDevice_GetDisplayMode+0x6A : or edx, eax - { 0x6A, 0x0B }, - { 0x6B, 0xD0 }, - - // D3DDevice_GetDisplayMode+0x7F : jmp +0x1C - { 0x7F, 0xEB }, - { 0x80, 0x1C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_RunPushBuffer // ****************************************************************** @@ -1379,130 +884,6 @@ OOVPA_NO_XREF(D3DDevice_RunPushBuffer, 4627, 10) { 0xEF, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_Begin -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Begin, 4627, 14) - - // D3DDevice_Begin+0x19 : shl edx, 6 - { 0x19, 0xD1 }, - { 0x1A, 0xE8 }, - - // D3DDevice_Begin+0x25 : mov dword ptr [eax], 0x417FC - { 0x25, 0xC7 }, - { 0x26, 0x00 }, - { 0x27, 0xFC }, - { 0x28, 0x17 }, - { 0x29, 0x04 }, - { 0x2A, 0x00 }, - - // D3DDevice_Begin+0x33 : or dword ptr [esi+8], 0x800 - { 0x33, 0x81 }, - { 0x34, 0x4E }, - { 0x35, 0x08 }, - { 0x37, 0x08 }, - - // D3DDevice_Begin+0x3B : retn 0x08 - { 0x3B, 0xC2 }, - { 0x3C, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetVertexData2f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData2f, 4627, 14) - - // D3DDevice_SetVertexData2f+0x20 : lea edx, ds:abs[ecx*8] - { 0x20, 0x8D }, - { 0x21, 0x14 }, - { 0x22, 0xCD }, - - // D3DDevice_SetVertexData2f+0x2B : mov [eax], edx; mov edx, [esp+0x10] - { 0x2B, 0x89 }, - { 0x2C, 0x10 }, - { 0x2D, 0x8B }, - { 0x2E, 0x54 }, - { 0x2F, 0x24 }, - { 0x30, 0x10 }, - - // D3DDevice_SetVertexData2f+0x37 : add eax, 0x0C - { 0x37, 0x83 }, - { 0x38, 0xC0 }, - { 0x39, 0x0C }, - - // D3DDevice_SetVertexData2f+0x3D : retn 0x0C - { 0x3D, 0xC2 }, - { 0x3E, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetVertexData4f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4f, 4627, 11) - - // D3DDevice_SetVertexData4f+0x20 : cmp ecx, -1; jnz +0x07 - { 0x20, 0x83 }, - { 0x21, 0xF9 }, - { 0x22, 0xFF }, - { 0x23, 0x75 }, - { 0x24, 0x07 }, - - // D3DDevice_SetVertexData4f+0x2C : add ecx, 0x01A0 - { 0x2C, 0x81 }, - { 0x2D, 0xC1 }, - { 0x2E, 0xA0 }, - { 0x2F, 0x01 }, - - // D3DDevice_SetVertexData4f+0x5F : retn 0x14 - { 0x5F, 0xC2 }, - { 0x60, 0x14 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_End -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_End, 4627, 12) - - { 0x00, 0x56 }, - { 0x07, 0x8B }, - { 0x13, 0xC7 }, - { 0x34, 0x81 }, - { 0x35, 0x66 }, - { 0x36, 0x08 }, - { 0x37, 0xFF }, - { 0x38, 0xE7 }, - { 0x39, 0xFF }, - { 0x3A, 0xFF }, - { 0x3B, 0x5E }, - { 0x3C, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_Clear -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Clear, 4627, 9) - - { 0x0C, 0x9D }, - { 0x1A, 0xB6 }, - { 0x1B, 0x47 }, - { 0x1C, 0x0D }, - { 0x1D, 0x8A }, - { 0x1E, 0x88 }, - { 0x54, 0x05 }, - { 0x81, 0xB6 }, - { 0xF8, 0x95 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_Swap // ****************************************************************** @@ -1524,33 +905,6 @@ OOVPA_NO_XREF(D3DDevice_Swap, 4627, 13) { 0x7A, 0x74 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_Swap -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Swap, 4627, 11) - - // D3DDevice_Swap+0x2A : mov ebx, 5 - { 0x2A, 0xBB }, - { 0x2B, 0x05 }, - - // D3DDevice_Swap+0x37 : test bl, 3 - { 0x37, 0xF6 }, - { 0x38, 0xC3 }, - { 0x39, 0x03 }, - - // D3DDevice_Swap+0x60 : inc dword ptr [esi+0x2C10] - { 0x60, 0xFF }, - { 0x61, 0x86 }, - { 0x62, 0x10 }, - { 0x63, 0x2C }, - - // D3DDevice_Swap+0xD8 : retn 4 - { 0xD8, 0xC2 }, - { 0xD9, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreateVertexBuffer // ****************************************************************** @@ -1607,80 +961,6 @@ OOVPA_XREF(D3DDevice_CreateVertexBuffer2, 4627, 13, { 0x4B, 0x04 }, OOVPA_END; -#if 0 // Moved to 4531 -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 4531, 11) // Up to 5120 - - { 0x03, 0xA1 }, - { 0x1A, 0x04 }, - { 0x1F, 0x7C }, - - { 0x6F, 0x8B }, - { 0x70, 0x4F }, - { 0x71, 0x04 }, - { 0x72, 0x8B }, - { 0x73, 0xD0 }, - { 0x74, 0x8B }, - { 0x75, 0x44 }, - { 0x76, 0x24 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4531 version -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 4627, 11) - - // D3DDevice_UpdateOverlay+0x0F : mov [eax+0x2BA8], ecx - { 0x0F, 0x89 }, - { 0x10, 0x88 }, - { 0x11, 0xA8 }, - { 0x12, 0x2B }, - - // D3DDevice_UpdateOverlay+0x8E : and eax, 0xFFFFFFFE - { 0x8E, 0x83 }, - { 0x8F, 0xE0 }, - { 0x90, 0xFE }, - - // D3DDevice_UpdateOverlay+0xAC : mov [esi+0x8930], eax - { 0xAC, 0x89 }, - { 0xAD, 0x86 }, - { 0xAE, 0x30 }, - { 0xAF, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetOverlayUpdateStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetOverlayUpdateStatus, 4627, 12) - - // D3DDevice_GetOverlayUpdateStatus+0x05 : mov ecx, [eax+0x2BA8] - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0xA8 }, - { 0x08, 0x2B }, - - // D3DDevice_GetOverlayUpdateStatus+0x0C : mov esi, [eax+0x2580] - { 0x0C, 0x8B }, - { 0x0D, 0xB0 }, - { 0x0E, 0x80 }, - { 0x0F, 0x25 }, - - // D3DDevice_GetOverlayUpdateStatus+0x16 : setnz dl - { 0x16, 0x0F }, - { 0x17, 0x95 }, - { 0x18, 0xC2 }, - - // D3DDevice_GetOverlayUpdateStatus+0x1C : retn - { 0x1C, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -1732,32 +1012,6 @@ OOVPA_NO_XREF(D3DDevice_SetVerticalBlankCallback, 4627, 12) { 0x11, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 4627, 10) - - // D3DDevice_GetViewport+0x05 : push esi; push edi - { 0x05, 0x56 }, - { 0x06, 0x57 }, - - // D3DDevice_GetViewport+0x0B : lea esi, [eax+0x0A90] - { 0x0B, 0x8D }, - { 0x0C, 0xB0 }, - { 0x0D, 0x90 }, - { 0x0E, 0x0A }, - - // D3DDevice_GetViewport+0x11 : mov ecx, 6 - { 0x11, 0xB9 }, - { 0x12, 0x06 }, - - // D3DDevice_GetViewport+0x1A : retn 0x04 - { 0x1A, 0xC2 }, - { 0x1B, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetTextureState_TexCoordIndex // ****************************************************************** @@ -1787,54 +1041,6 @@ OOVPA_XREF(D3DDevice_SetTextureState_TexCoordIndex, 4627, 1+10, { 0xAC, 0x04 }, OOVPA_END; -#if 0 // Used 4134 instead in 4627, 4721, 4831, 4928 -// ****************************************************************** -// * D3DDevice_SetRenderState_NormalizeNormals -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_NormalizeNormals, 4627, 8) - - // D3DDevice_SetRenderState_NormalizeNormals+0x07 : mov eax, [esi] - { 0x07, 0x8B }, - { 0x08, 0x06 }, - - // D3DDevice_SetRenderState_NormalizeNormals+0x2E : or [addr], 0x200 - { 0x2E, 0x81 }, - { 0x2F, 0x0D }, - { 0x34, 0x00 }, - { 0x35, 0x02 }, - - // D3DDevice_SetRenderState_NormalizeNormals+0x3F : retn 0x04 - { 0x3F, 0xC2 }, - { 0x40, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Used 4134 instead in 4627, 4721, 4831, 4928 -// ****************************************************************** -// * D3DDevice_SetRenderState_EdgeAntiAlias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_EdgeAntiAlias, 4627, 10) - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x07 : mov eax, [esi] - { 0x07, 0x8B }, - { 0x08, 0x06 }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x0C : jb +0x0E - { 0x0C, 0x72 }, - { 0x0D, 0x0E }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x1C : mov ecx, [esp+0x08] - { 0x1C, 0x8B }, - { 0x1D, 0x4C }, - { 0x1E, 0x24 }, - { 0x1F, 0x08 }, - - // D3DDevice_SetRenderState_EdgeAntiAlias+0x38 : retn 0x04 - { 0x38, 0xC2 }, - { 0x39, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_Dxt1NoiseEnable // ****************************************************************** @@ -1856,74 +1062,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_Dxt1NoiseEnable, 4627, 12) { 0x75, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetRenderState_Dxt1NoiseEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_Dxt1NoiseEnable, 4627, 9) - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x0D : mov eax, [edi+0x21B4] - { 0x0D, 0x8B }, - { 0x0E, 0x87 }, - { 0x0F, 0xB4 }, - { 0x10, 0x21 }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x56 : shl esi, 0x05 - { 0x56, 0xC1 }, - { 0x57, 0xE6 }, - { 0x58, 0x05 }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0x74 : retn 0x04 - { 0x74, 0xC2 }, - { 0x75, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4432 version -// ****************************************************************** -// * D3DDevice_SetRenderState_ZEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_ZEnable, 4627, 9) - - { 0x08, 0x06 }, - { 0x1D, 0xB8 }, - { 0x48, 0xC0 }, - { 0x49, 0x10 }, - { 0x4A, 0x89 }, - { 0x4B, 0x06 }, - { 0x4C, 0xA1 }, - { 0x5A, 0x74 }, - { 0x60, 0x2A }, -OOVPA_END; -#endif - -#if 0 // Used 4134 instead in 4627, 4721, 4831, 4928 -// ****************************************************************** -// * D3DDevice_SetRenderState_StencilEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_StencilEnable, 4627, 11) - - // D3DDevice_SetRenderState_StencilEnable+0x0C : jb +0x0E - { 0x0C, 0x72 }, - { 0x0D, 0x0E }, - - // D3DDevice_SetRenderState_StencilEnable+0x35 : jz +0x19 - { 0x35, 0x74 }, - { 0x36, 0x19 }, - - // D3DDevice_SetRenderState_StencilEnable+0x56 : mov dword ptr [eax], 0x00041D84 - { 0x56, 0xC7 }, - { 0x57, 0x00 }, - { 0x58, 0x84 }, - { 0x59, 0x1D }, - { 0x5A, 0x04 }, - - // D3DDevice_SetRenderState_StencilEnable+0x8A : retn 0x04 - { 0x8A, 0xC2 }, - { 0x8B, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_MultiSampleAntiAlias // ****************************************************************** @@ -1950,62 +1088,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleAntiAlias, 4627, 17) { 0x5D, 0xE8 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleAntiAlias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleAntiAlias, 4627, 12) - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x04 : push esi - { 0x04, 0x56 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x13 : call [abs] - { 0x13, 0xE8 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x27 : shl edi, 0x10 - { 0x27, 0xC1 }, - { 0x28, 0xE7 }, - { 0x29, 0x10 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x2E : jns +0x0C - { 0x2E, 0x79 }, - { 0x2F, 0x0C }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x39 : or edi, 0x01 - { 0x39, 0x83 }, - { 0x3A, 0xCF }, - { 0x3B, 0x01 }, - - // D3DDevice_SetRenderState_MultiSampleAntiAlias+0x6F : retn 0x04 - { 0x6F, 0xC2 }, - { 0x70, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_DrawVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVerticesUP, 4627, 10) - - // D3DDevice_DrawVerticesUP+0x03 : sub esp, 0x14 - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x14 }, - - // D3DDevice_DrawVerticesUP+0x2F : mov edx, [edi+0x804] - { 0x2F, 0x8B }, - { 0x30, 0x97 }, - { 0x31, 0x04 }, - { 0x32, 0x08 }, - - // D3DDevice_DrawVerticesUP+0x8A : mov [ebp+arg_C], eax - { 0x8A, 0x89 }, - { 0x8B, 0x45 }, - { 0x8C, 0x14 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_DrawIndexedVertices // ****************************************************************** @@ -2126,140 +1208,6 @@ OOVPA_XREF(D3DVertexBuffer_Lock, 4627, 1+25, { 0x1C, 0x14 }, OOVPA_END; -#if 0 // Used 3925 instead in 4627, 4721, 4831, 4928 -// ****************************************************************** -// * D3DResource_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_Release, 4627, 11) - - // D3DResource_Release+0x09 : and ecx, 0xFFFF - { 0x09, 0x81 }, - { 0x0A, 0xE1 }, - { 0x0B, 0xFF }, - { 0x0C, 0xFF }, - - // D3DResource_Release+0x14 : and eax, 0x00070000 - { 0x14, 0x25 }, - { 0x17, 0x07 }, - - // D3DResource_Release+0x19 : cmp eax, 0x00050000 - { 0x19, 0x3D }, - { 0x1C, 0x05 }, - - // D3DResource_Release+0x3D : pop edi - { 0x3D, 0x5F }, - - // D3DResource_Release+0x4A : retn 0x04 - { 0x4A, 0xC2 }, - { 0x4B, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4034 -// ****************************************************************** -// * D3DResource_GetType -// ****************************************************************** -OOVPA_NO_XREF(D3DResource_GetType, 4627, 7) - - { 0x10, 0x77 }, - { 0x22, 0x83 }, - { 0x34, 0x00 }, - { 0x46, 0x74 }, - { 0x58, 0x00 }, - { 0x6A, 0x74 }, - { 0x7C, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Accurately version 4361 _D3DDevice_CreateDepthStencilSurface@20 -// ****************************************************************** -// * D3DVolumeTexture_LockBox -// ****************************************************************** -OOVPA_NO_XREF(D3DVolumeTexture_LockBox, 4627, 15) - - // D3DVolumeTexture_LockBox+0x00 : mov eax, [esp+0x14] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x14 }, - - // D3DVolumeTexture_LockBox+0x04 : mov ecx, [esp+0x10] - { 0x04, 0x8B }, - { 0x05, 0x4C }, - { 0x06, 0x24 }, - { 0x07, 0x0C }, - - // D3DVolumeTexture_LockBox+0x0C : push eax - { 0x0C, 0x50 }, - - // D3DVolumeTexture_LockBox+0x11 : push ecx; push edx; push eax - { 0x11, 0x51 }, - { 0x12, 0x52 }, - { 0x13, 0x50 }, - - // D3DVolumeTexture_LockBox+0x18 : call [addr] - { 0x18, 0xE8 }, - - // D3DVolumeTexture_LockBox+0x1D : retn 0x14 - { 0x1D, 0xC2 }, - { 0x1E, 0x14 }, -OOVPA_END; -#endif - -#if 0 // Used 3925 instead in 4627, 4721, 4831, 4928 -// ****************************************************************** -// * D3DSurface_LockRect -// ****************************************************************** -OOVPA_NO_XREF(D3DSurface_LockRect, 4627, 17) - - // D3DSurface_LockRect+0x00 : mov eax, [esp+0x10] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x10 }, - - // D3DSurface_LockRect+0x04 : mov ecx, [esp+0x04] - { 0x04, 0x8B }, - { 0x05, 0x4C }, - { 0x06, 0x24 }, - { 0x07, 0x04 }, - - // D3DSurface_LockRect+0x08 : push esi; mov esi, [esp+0x0C]; push eax - { 0x08, 0x56 }, - { 0x09, 0x8B }, - { 0x0A, 0x74 }, - { 0x0B, 0x24 }, - { 0x0C, 0x0C }, - { 0x0D, 0x50 }, - - // D3DSurface_LockRect+0x17 : call [addr] - { 0x17, 0xE8 }, - - // D3DSurface_LockRect+0x1D : retn 0x10 - { 0x1D, 0xC2 }, - { 0x1E, 0x10 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 4627, 10) - - { 0x10, 0x0D }, - { 0x48, 0x08 }, - { 0x49, 0x02 }, - { 0x4A, 0x00 }, - { 0x4B, 0x00 }, - { 0x4C, 0x00 }, - { 0x4D, 0xA1 }, - { 0x58, 0x53 }, - { 0x63, 0x80 }, - { 0xAE, 0xC2 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DTexture_GetSurfaceLevel2 // ****************************************************************** @@ -2319,39 +1267,6 @@ OOVPA_XREF(D3DTexture_GetSurfaceLevel, 4627, 1+12, { 0x15, 0x85 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4432 version -// ****************************************************************** -// * D3DDevice_GetViewportOffsetAndScale@8 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewportOffsetAndScale, 4627, 8) - - { 0x1E, 0xD8 }, - { 0x40, 0xD8 }, - { 0x5E, 0xC9 }, - { 0x7E, 0x05 }, - { 0x9E, 0x0A }, - { 0xBE, 0x00 }, - { 0xDE, 0x14 }, - { 0xFE, 0xE0 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4361 version -// ****************************************************************** -// * D3DDevice_SelectVertexShaderDirect -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SelectVertexShaderDirect, 4627, 7) - - { 0x05, 0x85 }, - { 0x0C, 0x00 }, - { 0x14, 0xF3 }, - { 0x1D, 0x83 }, - { 0x21, 0x4C }, - { 0x29, 0x5E }, - { 0x2F, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetShaderConstantMode // ****************************************************************** @@ -2376,95 +1291,6 @@ OOVPA_NO_XREF(D3DDevice_GetShaderConstantMode, 4627, 16) { 0x13, 0x00 }, OOVPA_END; -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_GetVertexShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderConstant, 4627, 7) - - { 0x05, 0x15 }, - { 0x0C, 0x24 }, - { 0x13, 0xE0 }, - { 0x1A, 0x8D }, - { 0x21, 0x8B }, - { 0x28, 0x8B }, - { 0x2F, 0x5F }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4361 version -// ****************************************************************** -// * D3DDevice_SetVertexShaderInputDirect -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShaderInputDirect, 4627, 7) - - { 0x05, 0x85 }, - { 0x0C, 0x00 }, - { 0x14, 0xF3 }, - { 0x1D, 0x83 }, - { 0x21, 0x54 }, - { 0x29, 0x5E }, - { 0x2F, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderInput -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderInput, 4627, 7) - - { 0x0B, 0x74 }, - { 0x18, 0x04 }, - { 0x25, 0x57 }, - { 0x32, 0x00 }, - { 0x3F, 0x00 }, - { 0x4C, 0x03 }, - { 0x59, 0xD0 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_RunVertexStateShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_RunVertexStateShader, 4627, 7) - - { 0x09, 0x3B }, - { 0x14, 0x4C }, - { 0x1F, 0xC0 }, - { 0x2A, 0x40 }, - { 0x35, 0xF4 }, - { 0x40, 0xC7 }, - { 0x4B, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_EndPush -// ****************************************************************** -OOVPA_XREF(D3DDevice_EndPush, 4627, 1+11, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x06, XREF_D3DDEVICE ), // Derived - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x8B }, - { 0x05, 0x0D }, - { 0x0A, 0x89 }, - { 0x0B, 0x01 }, - { 0x0C, 0xC2 }, - { 0x0D, 0x04 }, - { 0x0E, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_LoadVertexShader // ****************************************************************** @@ -2479,57 +1305,6 @@ OOVPA_NO_XREF(D3DDevice_LoadVertexShader, 4627, 7) { 0x4B, 0x8D }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_LoadVertexShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LoadVertexShaderProgram, 4627, 8) - - { 0x0B, 0x2D }, - { 0x18, 0x10 }, - { 0x19, 0x75 }, - { 0x1A, 0x19 }, - { 0x1B, 0x56 }, - { 0x1C, 0x8D }, - { 0x25, 0xE0 }, - { 0x32, 0x5F }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SelectVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SelectVertexShader, 4627, 8) - - { 0x0E, 0x49 }, - { 0x1E, 0x00 }, - { 0x2E, 0x72 }, - { 0x3E, 0x1E }, - { 0x4E, 0x8B }, - { 0x5E, 0x05 }, - { 0x6E, 0x89 }, - { 0x7E, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderDeclaration -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderDeclaration, 4627, 8) - - { 0x1E, 0xC2 }, - { 0x3E, 0x00 }, - { 0x5E, 0x00 }, - { 0x7E, 0x02 }, - { 0x9E, 0x24 }, - { 0xBE, 0x2B }, - { 0xDE, 0x9A }, - { 0xFE, 0x10 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetStreamSource2 (Maybe same in older versions) // ****************************************************************** @@ -2544,93 +1319,6 @@ OOVPA_NO_XREF(D3DDevice_GetStreamSource2, 4627, 7) { 0x36, 0x89 }, OOVPA_END; -#if 0 // Used 4134 instead in 4627, 4721, 4831, 4928 -// ****************************************************************** -// * D3DDevice_SetVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShader, 4627, 14) - - // D3DDevice_SetVertexShader+0x06 : test bl, 1 - { 0x06, 0xF6 }, - { 0x07, 0xC3 }, - { 0x08, 0x01 }, - - // D3DDevice_SetVertexShader+0x11 : mov eax, [esi+0x0380] - { 0x11, 0x8B }, - { 0x12, 0x86 }, - { 0x13, 0x80 }, - { 0x14, 0x03 }, - - // D3DDevice_SetVertexShader+0x95 : retn 0x04 - { 0x95, 0xC2 }, - { 0x96, 0x04 }, - - // D3DDevice_SetVertexShader+0xC2 : mov dword ptr [eax], 0x4194C - { 0xC2, 0xC7 }, - { 0xC3, 0x00 }, - { 0xC4, 0x4C }, - { 0xC5, 0x19 }, - { 0xC6, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 4627, 8) - - { 0x07, 0x8B }, - { 0x0C, 0x00 }, - { 0x13, 0xCF }, - { 0x1A, 0x0C }, - { 0x21, 0x05 }, - { 0x28, 0x00 }, - { 0x2F, 0x89 }, - { 0x36, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_LineWidth -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LineWidth, 4627, 8) - - // D3DDevice_SetRenderState_LineWidth+0x15 : fmul dword ptr [esi+0xXXXX] - { 0x15, 0xD8 }, - { 0x16, 0x8E }, - - // D3DDevice_SetRenderState_LineWidth+0x32 : cmp edi, 0x1FF - { 0x32, 0x81 }, - { 0x33, 0xFF }, - - // D3DDevice_SetRenderState_LineWidth+0x3A : mov edi, 0x1FF - { 0x3A, 0xBF }, - { 0x3B, 0xFF }, - - // D3DDevice_SetRenderState_LineWidth+0x62 : retn 0x04 - { 0x62, 0xC2 }, - { 0x63, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetBackBufferScale -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackBufferScale, 4627, 6) - - { 0x1E, 0x24 }, - { 0x3E, 0x06 }, -// { 0x62, 0xEC }, - { 0x7E, 0x8B }, - { 0x9E, 0xBF }, - { 0xBE, 0x89 }, - { 0xDE, 0x8B }, -OOVPA_END; -#endif - // ****************************************************************** // * CMiniport_IsFlipPending // ****************************************************************** @@ -2656,94 +1344,6 @@ OOVPA_NO_XREF(CMiniport_IsFlipPending, 4627, 18) // Was D3DDevice_Reset { 0x11, 0x81 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetPixelShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderProgram, 4627, 10) - - { 0x00, 0x8B }, - { 0x01, 0x54 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x85 }, - { 0x05, 0xD2 }, - { 0x29, 0x89 }, - { 0x2A, 0x4C }, - { 0x2B, 0x24 }, - { 0x2C, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4432 -// ****************************************************************** -// * D3DDevice_GetDisplayFieldStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayFieldStatus, 4627, 7) - - { 0x0B, 0x8B }, - { 0x0C, 0x4C }, - { 0x0D, 0x24 }, - { 0x0E, 0x04 }, - { 0x1E, 0x56 }, - { 0x25, 0x33 }, - { 0x26, 0xD2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_CreateStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateStateBlock, 4627, 11) - - { 0x0C, 0x57 }, - { 0x1C, 0xF3 }, - { 0x1D, 0xAB }, - { 0x41, 0x81 }, - { 0x42, 0xC1 }, - { 0x43, 0x90 }, - { 0x44, 0x00 }, - { 0x45, 0x00 }, - { 0x46, 0x00 }, - { 0x8B, 0x33 }, - { 0x8C, 0xC0 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_InsertCallback -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_InsertCallback, 4627, 7) - - { 0x0D, 0x0E }, - { 0x1C, 0x8B }, - { 0x2B, 0x48 }, - { 0x3A, 0x0C }, - { 0x49, 0x89 }, - { 0x58, 0x10 }, - { 0x67, 0x07 }, -OOVPA_END; -#endif - -#if 0 // obsolete, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_DrawRectPatch -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawRectPatch, 4627, 8) // obsolete, replaced by generic 3911 version - - { 0x1E, 0x6C }, - { 0x3E, 0x3C }, - { 0x5E, 0x54 }, - { 0x80, 0x89 }, - { 0x9E, 0xF0 }, - { 0xBE, 0x00 }, - { 0xDE, 0xD8 }, - { 0xFE, 0xD9 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetProjectionViewportMatrix // ****************************************************************** @@ -2769,60 +1369,6 @@ OOVPA_NO_XREF(D3DDevice_GetProjectionViewportMatrix, 4627, 16) // Up to 5233 { 0x1B, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetProjectionViewportMatrix -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetProjectionViewportMatrix, 4627, 7) - - { 0x02, 0x35 }, - { 0x07, 0x57 }, - { 0x0A, 0x24 }, - { 0x0E, 0x30 }, - { 0x12, 0xB9 }, - { 0x16, 0x00 }, - { 0x1A, 0x5E }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetScissors@12 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScissors, 4627, 8) - - { 0x1E, 0x57 }, - { 0x3E, 0x44 }, - { 0x5E, 0x5C }, - { 0x7E, 0x24 }, - { 0x9E, 0xBE }, - { 0xBE, 0x04 }, - { 0xDE, 0x24 }, - { 0xFE, 0x4C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPalette@8 -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPalette, 4627, 1+7, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PALETTES ), // Derived - - { 0x10, 0x48 }, - { 0x22, 0x0B }, - { 0x34, 0x00 }, - { 0x46, 0x9C }, - { 0x58, 0xC5 }, - { 0x6E, 0x8B }, - { 0x7C, 0x89 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_MultiSampleMask // ****************************************************************** @@ -2838,68 +1384,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMask, 4627, 8) { 0x4E, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_LogicOp -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LogicOp, 4627, 7) - - { 0x09, 0x3B }, - { 0x14, 0x4C }, - { 0x1F, 0x04 }, - { 0x2A, 0x0D }, - { 0x35, 0xBC }, - { 0x40, 0x89 }, - { 0x4E, 0x5E }, -OOVPA_END; -#endif - -#if 0 // Moved to 4531 -// ****************************************************************** -// * D3D::CDevice::KickOff -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_KickOff, 4531, 13) - - // D3D::CDevice::KickOff+0x0B : mov edx, [ecx+0x35C] - { 0x0B, 0x8B }, - { 0x0C, 0x91 }, - { 0x0D, 0x5C }, - { 0x0E, 0x03 }, - { 0x0F, 0x00 }, - { 0x10, 0x00 }, - - // D3D::CDevice::KickOff+0x1F : test ch, 0x20 - { 0x1F, 0xF6 }, - { 0x20, 0xC5 }, - { 0x21, 0x20 }, - - // D3D::CDevice::KickOff+0x2F : sfence - { 0x2F, 0x0F }, - { 0x30, 0xAE }, - { 0x31, 0xF8 }, - - // D3D::CDevice::KickOff+0xE2 : retn - { 0xE2, 0xC3 } -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * D3DDevice_KickPushBuffer -// ****************************************************************** -OOVPA_XREF(D3DDevice_KickPushBuffer, 4627, 1+3, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x07, XREF_D3D_CDevice_KickOff ), - - { 0x00, 0x8B }, - { 0x01, 0x0D }, - { 0x06, 0xE9 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetTexture, named with 2 suffix to match EMUPATCH(D3DDevice_GetTexture2) // ****************************************************************** @@ -3048,73 +1532,6 @@ OOVPA_NO_XREF(D3DDevice_PersistDisplay, 4627, 13) { 0x42, 0xE8 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_PersistDisplay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PersistDisplay, 4627, 8) - - { 0x21, 0x8B }, - { 0x3C, 0x8D }, - { 0x5B, 0x74 }, - { 0x7A, 0x42 }, - { 0x99, 0x56 }, - { 0xB8, 0x00 }, - { 0xD7, 0x8B }, - { 0xF6, 0xF9 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4831 -// ****************************************************************** -// * D3DDevice_PersistDisplay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PersistDisplay, 4831, 13) // Up to 5344 - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x1E, 0x15 }, - - { 0x28, 0x00 }, - { 0x29, 0x85 }, - { 0x2A, 0xC0 }, - { 0x2B, 0x75 }, - { 0x2C, 0x0A }, - { 0x2D, 0xB8 }, - { 0x2E, 0x05 }, - { 0x2F, 0x40 }, - { 0x30, 0x00 }, - - { 0x36, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_PersistDisplay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PersistDisplay, 4928, 14) - - // D3DDevice_PersistDisplay+0x23 : mov eax, [ebx+0x500] - { 0x23, 0x8B }, - { 0x24, 0x83 }, - { 0x25, 0x00 }, - { 0x26, 0x05 }, - { 0x27, 0x00 }, - { 0x28, 0x00 }, - // D3DDevice_PersistDisplay+0x39 : lea ebp, [ebx+0x23C0] - { 0x39, 0x8D }, - { 0x3A, 0xAB }, - { 0x3B, 0xC0 }, - { 0x3C, 0x23 }, - { 0x3D, 0x00 }, - { 0x3E, 0x00 }, - // D3DDevice_PersistDisplay+0x72 : shl edx, cl - { 0x72, 0xD3 }, - { 0x73, 0xE2 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetSwapCallback // ****************************************************************** @@ -3181,53 +1598,6 @@ OOVPA_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 4627, 1+10, { 0x31, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleRenderTargetMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 4627, 8) - - { 0x09, 0x89 }, - { 0x0F, 0x8B }, - { 0x13, 0x00 }, - { 0x1A, 0x00 }, - { 0x1B, 0x74 }, - { 0x21, 0x00 }, - { 0x28, 0x00 }, - { 0x31, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // High detection accuracy, use 4134. -// ****************************************************************** -// * D3DDevice_BeginStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginStateBlock, 4627, 6) - - { 0x00, 0xA1 }, - { 0x05, 0x83 }, - { 0x06, 0x48 }, - { 0x07, 0x08 }, - { 0x08, 0x20 }, - { 0x09, 0xE9 }, -OOVPA_END; -#endif - -#if 0 // High detection accuracy, use 4134. -// ****************************************************************** -// * D3DDevice_EndStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndStateBlock, 4627, 6) - - { 0x00, 0xA1 }, - { 0x05, 0x83 }, - { 0x06, 0x60 }, - { 0x07, 0x08 }, - { 0x08, 0xDF }, - { 0x09, 0xE9 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_ApplyStateBlock // ****************************************************************** @@ -3243,23 +1613,6 @@ OOVPA_NO_XREF(D3DDevice_ApplyStateBlock, 4627, 8) { 0xFE, 0x33 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_CaptureStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CaptureStateBlock, 4627, 8) - - { 0x1D, 0x5E }, - { 0x3C, 0x00 }, - { 0x5B, 0x72 }, - { 0x7A, 0x00 }, - { 0x99, 0x01 }, - { 0xBC, 0x8B }, - { 0xD7, 0x89 }, - { 0xF9, 0x8B }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::BlockOnTime // ****************************************************************** @@ -3276,54 +1629,6 @@ OOVPA_XREF(D3D_BlockOnTime, 4627, 6, { 0xF5, 0x30 }, OOVPA_END; -#if 0 // Moved to 4039 -// ****************************************************************** -// * D3DDevice_BlockOnFence -// ****************************************************************** -OOVPA_XREF(D3DDevice_BlockOnFence, 4627, 1+7, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x08, XREF_D3D_BlockOnTime ), - - { 0x00, 0x8B }, - { 0x02, 0x24 }, - { 0x04, 0x6A }, - { 0x06, 0x50 }, - { 0x0C, 0xC2 }, - { 0x0D, 0x04 }, - { 0x0E, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * Lock3DSurface -// ****************************************************************** -OOVPA_NO_XREF(Lock3DSurface, 4627, 11) - - // D3D::PixelJar::Lock3DSurface + 0x08: test bl, 0x20 - { 0x08, 0xF6 }, - { 0x09, 0xC3 }, - { 0x0A, 0x20 }, - - // D3D::PixelJar::Lock3DSurface + 0x40: test bl, 0x40 - { 0x40, 0xF6 }, - { 0x41, 0xC3 }, - { 0x42, 0x40 }, - - // D3D::PixelJar::Lock3DSurface + 0x6D: and edx, 0x3C - { 0x6D, 0x83 }, - { 0x6E, 0xE2 }, - { 0x6F, 0x3C }, - - // D3D::PixelJar::Lock3DSurface + 0x99: ret 0x14 - { 0x99, 0xC2 }, - { 0x9A, 0x14 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreateImageSurface // ****************************************************************** @@ -3378,38 +1683,6 @@ OOVPA_NO_XREF(D3DCubeTexture_GetCubeMapSurface2, 4627, 7) { 0x46, 0x5E }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetSoftDisplayFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSoftDisplayFilter, 4627, 7) - - { 0x0D, 0x56 }, - { 0x14, 0x8B }, - { 0x1F, 0x95 }, - { 0x2A, 0x00 }, - { 0x37, 0x33 }, - { 0x44, 0x01 }, - { 0x4D, 0x5E }, -OOVPA_END; -#endif - -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_GetPixelShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetPixelShader, 4627, 7) - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x70 }, - { 0x0A, 0x00 }, - { 0x0D, 0x24 }, - { 0x10, 0x0A }, - { 0x13, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreatePalette2 // ****************************************************************** @@ -3487,54 +1760,6 @@ OOVPA_XREF(D3DPalette_Lock, 4627, 1+7, { 0x14, 0x02 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 4627, 7) - - { 0x07, 0xC9 }, - { 0x10, 0x24 }, - { 0x1A, 0x74 }, - { 0x22, 0x6A }, - { 0x2E, 0xC7 }, - { 0x34, 0x01 }, - { 0x3E, 0x5E }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_BeginPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginPushBuffer, 4627, 7) - - { 0x0B, 0xCE }, - { 0x1B, 0x89 }, - { 0x25, 0x00 }, - { 0x32, 0x06 }, - { 0x3F, 0x03 }, - { 0x4C, 0x04 }, - { 0x59, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5028 -// ****************************************************************** -// * D3DDevice_EndPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 4627, 7) - - { 0x11, 0x8D }, - { 0x22, 0x50 }, - { 0x34, 0x0C }, - { 0x46, 0x08 }, - { 0x58, 0x00 }, - { 0x6D, 0x8B }, - { 0x7C, 0x88 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetPushBufferOffset // ****************************************************************** @@ -3552,21 +1777,6 @@ OOVPA_NO_XREF(D3DDevice_GetPushBufferOffset, 4627, 10) { 0x1F, 0x03 }, OOVPA_END; -#if 0 // Moved to 4928 -// ****************************************************************** -// * D3DDevice_GetPersistedSurface2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetPersistedSurface2, 4928, 6) // For only on Unreal Championship - - { 0x00, 0xFF }, - { 0x01, 0x25 }, - { 0x02, 0x04 }, - { 0x03, 0xC1 }, - { 0x04, 0x3A }, - { 0x05, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetModelView // ****************************************************************** @@ -3595,48 +1805,6 @@ OOVPA_NO_XREF(D3D_LazySetPointParams, 4627, 7) { 0x75, 0x41 }, OOVPA_END; -#if 0 // Moved to 4432 -// ****************************************************************** -// * D3DDevice_SetDepthClipPlanes -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetDepthClipPlanes, 4627, 15) - - { 0x03, 0x0C }, - { 0x04, 0x48 }, - { 0x05, 0x83 }, - { 0x06, 0xF8 }, - { 0x07, 0x03 }, - { 0x08, 0x56 }, - { 0x09, 0x8B }, - { 0x0A, 0x35 }, - - { 0x0F, 0x77 }, - { 0x10, 0x5F }, - { 0x11, 0xFF }, - { 0x12, 0x24 }, - { 0x13, 0x85 }, - - { 0x18, 0x8B }, - { 0x1F, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetDepthClipPlanes -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetDepthClipPlanes, 4627, 7) - - { 0x12, 0x24 }, - { 0x26, 0x8B }, - { 0x3A, 0x0C }, - { 0x4E, 0x17 }, - { 0x62, 0x86 }, - { 0x76, 0x05 }, - { 0x8A, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetMaterial // ****************************************************************** @@ -3684,44 +1852,6 @@ OOVPA_NO_XREF(D3DDevice_GetBackMaterial, 4627, 8) { 0x1A, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_PrimeVertexCache -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PrimeVertexCache, 4627, 8) - - { 0x1A, 0x8B }, - { 0x1B, 0x4D }, - { 0x1C, 0x04 }, - { 0x1D, 0xD1 }, - { 0x1E, 0xEE }, - { 0x2E, 0xC7 }, - { 0x3E, 0x00 }, - { 0x4E, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3D::BlockOnResource -// ****************************************************************** -OOVPA_XREF(D3D_BlockOnResource, 4627, 9, - - XREF_D3D_BlockOnResource, - XRefZero) - - { 0x35, 0x8B }, // mov edx, [ecx+0x1C] - { 0x36, 0x42 }, - { 0x37, 0x30 }, - { 0x41, 0xC2 }, // retn 4 - { 0x42, 0x04 }, - { 0x43, 0x00 }, - { 0x65, 0xC2 }, // retn 4 - { 0x66, 0x04 }, - { 0x67, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_SampleAlpha // ****************************************************************** @@ -3736,40 +1866,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_SampleAlpha, 4627, 7) { 0x44, 0x83 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * CMiniport::InitHardware -// ****************************************************************** -OOVPA_NO_XREF(CMiniport_InitHardware, 4627, 24) // Also for 5344 - { 0x00, 0x55 }, - { 0x01, 0x8B }, - { 0x02, 0xEC }, - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x10 }, - { 0x06, 0x53 }, - { 0x07, 0x56 }, - { 0x08, 0x8B }, - { 0x09, 0xF1 }, - { 0x0A, 0x56 }, - { 0x0B, 0x68 }, - - { 0x10, 0x8D }, - { 0x11, 0x86 }, - { 0x12, 0x84 }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x00 }, - { 0x16, 0x50 }, - { 0x17, 0xFF }, - { 0x18, 0x15 }, - - { 0x1D, 0x80 }, - { 0x1E, 0xA6 }, - { 0x1F, 0xA4 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreateVolumeTexture // ****************************************************************** @@ -3811,33 +1907,6 @@ OOVPA_NO_XREF(D3DDevice_CreateCubeTexture, 4627, 11) { 0x1F, 0x4C }, OOVPA_END; -#if 0 // Moved to 4531 -// ****************************************************************** -// * D3DPalette_Lock -// ****************************************************************** -OOVPA_NO_XREF(D3DPalette_Lock, 4531, 17) - - { 0x00, 0xF6 }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x0C }, - { 0x04, 0xA0 }, - { 0x05, 0x56 }, - { 0x06, 0x8B }, - { 0x07, 0x74 }, - { 0x08, 0x24 }, - { 0x09, 0x08 }, - { 0x0A, 0x75 }, - { 0x0B, 0x06 }, - { 0x0C, 0x56 }, - { 0x0D, 0xE8 }, - - { 0x12, 0x8B }, - { 0x21, 0xC2 }, - { 0x22, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * IDirect3DVertexBuffer8_Lock // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4831.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4831.inl index 66f11a729..216baf318 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4831.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.4831.inl @@ -53,38 +53,6 @@ OOVPA_NO_XREF(D3DDevice_CreateTexture2, 4831, 12) { 0x52, 0xF7 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_CreateTexture2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateTexture2, 4831, 12) - - // D3DDevice_CreateTexture2+0x02 : lea eax, [esp+0x20] - { 0x04, 0x8D }, - { 0x07, 0x20 }, - - // D3DDevice_CreateTexture2+0x0E : setz dl - { 0x10, 0x0F }, - { 0x11, 0x94 }, - { 0x12, 0xC2 }, - - // D3DDevice_CreateTexture2+0x2A : push 0x00 - { 0x2E, 0x6A }, - { 0x2F, 0x00 }, - - // D3DDevice_CreateTexture2+0x53 : call [abs] - { 0x57, 0xE8 }, - - // D3DDevice_CreateTexture2+0x78 : jnz +0x0D - { 0x7C, 0x75 }, - { 0x7D, 0x0D }, - - // D3DDevice_CreateTexture2+0xAE : retn 0x1C - { 0x88, 0xC2 }, - { 0x89, 0x1C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetTexture // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5028.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5028.inl index 5230ad5c4..eb2cb659e 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5028.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5028.inl @@ -62,100 +62,6 @@ OOVPA_NO_XREF(Direct3D_CreateDevice, 5028, 20) // Also for 5120, 5233, 5344 (545 { 0x1F, 0xC7 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_TextureFactor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TextureFactor, 5028, 9) - - // D3DDevice_SetRenderState_TextureFactor+0x07 : mov eax, [esi+0x036C] - { 0x07, 0x8B }, - { 0x08, 0x86 }, - { 0x09, 0x6C }, - { 0x0A, 0x03 }, - - // D3DDevice_SetRenderState_TextureFactor+0x2F : nop - { 0x2F, 0x90 }, - - // D3DDevice_SetRenderState_TextureFactor+0x41 : retn 0x04 - { 0x41, 0xC2 }, - { 0x42, 0x04 }, - - // D3DDevice_SetRenderState_TextureFactor+0x4E : retn 0x04 - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetRenderState_Dxt1NoiseEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_Dxt1NoiseEnable, 5028, 7) - - { 0x0F, 0xB4 }, - { 0x10, 0x15 }, - { 0x16, 0x0D }, - { 0x1F, 0x3C }, - { 0x34, 0x36 }, - { 0x58, 0x05 }, - { 0x75, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4432 version -// ****************************************************************** -// * D3DDevice_SetRenderState_ZEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_ZEnable, 5028, 8) - - { 0x13, 0x8B }, - { 0x22, 0xC9 }, - { 0x34, 0x89 }, - { 0x46, 0x0C }, - { 0x5A, 0x74 }, - { 0x6D, 0x8B }, - { 0x7C, 0xCE }, - { 0x8E, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4627 -// ****************************************************************** -// * D3DDevice_SetRenderState_SampleAlpha -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_SampleAlpha, 5028, 7) - - { 0x0B, 0xC1 }, - { 0x15, 0x0B }, - { 0x1C, 0x8B }, - { 0x28, 0x85 }, - { 0x30, 0x07 }, - { 0x3B, 0xC7 }, - { 0x44, 0x83 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_CreateTexture2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateTexture2, 5028, 11) // Also for 5233, 5344, 5558, 5659, 5788, 5849 - - { 0x00, 0x56 }, - { 0x18, 0x33 }, - { 0x19, 0xC9 }, - { 0x1A, 0x83 }, - { 0x1B, 0xF8 }, - { 0x1C, 0x05 }, - { 0x1D, 0x8B }, - { 0x1E, 0x44 }, - { 0x1F, 0x24 }, - { 0x42, 0x8B }, - { 0x52, 0xF7 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -181,272 +87,6 @@ OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5028, 11) { 0x23, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by another 5028 version -// ****************************************************************** -// * D3DDevice_BlockUntilVerticalBlank -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5028, 7) - - { 0x05, 0x6A }, - { 0x12, 0x00 }, - { 0x15, 0x6A }, - { 0x16, 0x06 }, - { 0x17, 0x05 }, - { 0x1C, 0x50 }, - { 0x23, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetBackBuffer2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackBuffer2, 5028, 12) - - // D3DDevice_GetBackBuffer2+0x04 : cmp eax, 0xFFFFFFFF - { 0x04, 0x83 }, - { 0x05, 0xF8 }, - { 0x06, 0xFF }, - - // D3DDevice_GetBackBuffer+0x0D : jnz +0x19 - { 0x0D, 0x75 }, - { 0x0E, 0x19 }, - - // D3DDevice_GetBackBuffer+0x15 : mov esi, [ecx+eax*4+0x15C0] - { 0x15, 0x8B }, - { 0x16, 0xB4 }, - { 0x17, 0x81 }, - { 0x18, 0xC0 }, - { 0x19, 0x15 }, - - // D3DDevice_GetBackBuffer+0x40 : retn 0x04 - { 0x40, 0xC2 }, - { 0x41, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetRenderTarget2 -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetRenderTarget2, 5028, 1+6, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x08, XREF_OFFSET_D3DDEVICE_M_RENDERTARGET ), // Derived - - { 0x05, 0x56 }, - { 0x06, 0x8B }, - { 0x0A, 0x00 }, - { 0x0E, 0x74 }, - { 0x16, 0x8B }, - { 0x17, 0xC6 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetDepthStencilSurface2 -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetDepthStencilSurface2, 5028, 1+7, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x08, XREF_OFFSET_D3DDEVICE_M_DEPTHSTENCIL ), // Derived - - { 0x05, 0x56 }, - { 0x06, 0x8B }, - { 0x0A, 0x00 }, - { 0x0E, 0x75 }, - { 0x12, 0x5E }, - { 0x1A, 0x8B }, - { 0x1B, 0xC6 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetViewport, 5028, 9) - - // D3DDevice_SetViewport+0x0A : mov eax, [esi+0x15B4] - { 0x0A, 0x8B }, - { 0x0B, 0x86 }, - { 0x0C, 0xB4 }, - { 0x0D, 0x15 }, - - // D3DDevice_SetViewport+0x63 : shl edi, cl - { 0x63, 0xD3 }, - { 0x64, 0xE7 }, - - // D3DDevice_SetViewport+0xDF : and ecx, 0x0F - { 0xDF, 0x83 }, - { 0xE0, 0xE1 }, - { 0xE1, 0x0F }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetLight -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetLight, 5028, 12) - - // D3DDevice_SetLight+0x11 : mov edi, [ebp+0x390] - { 0x11, 0x8B }, - { 0x12, 0xBD }, - { 0x13, 0x90 }, - { 0x14, 0x03 }, - - // D3DDevice_SetLight+0x30 : shl eax, 0x04 - { 0x30, 0xC1 }, - { 0x31, 0xE0 }, - { 0x32, 0x04 }, - - // D3DDevice_SetLight+0xBD : rep stosb - { 0xBD, 0xF3 }, - { 0xBE, 0xAB }, - - // D3DDevice_SetLight+0xFD : mov ecx, [ebx+0x68] - { 0xFD, 0x8B }, - { 0xFE, 0x4B }, - { 0xFF, 0x68 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_LightEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LightEnable, 5028, 13) - - // D3DDevice_LightEnable+0x0F : cmp ebx, [esi+0x0390] - { 0x0F, 0x3B }, - { 0x10, 0x9E }, - { 0x11, 0x90 }, - { 0x12, 0x03 }, - - // D3DDevice_LightEnable+0x6B : test eax, eax - { 0x6B, 0x85 }, - { 0x6C, 0xC0 }, - - // D3DDevice_LightEnable+0x9E : mov eax, [eax+0x8C] - { 0x9E, 0x8B }, - { 0x9F, 0x80 }, - { 0xA0, 0x8C }, - - // D3DDevice_LightEnable+0xBC : jz +0x12 - { 0xBC, 0x74 }, - { 0xBD, 0x12 }, - - // D3DDevice_LightEnable+0xE1 : retn 0x08 - { 0xE1, 0xC2 }, - { 0xE2, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetIndices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetIndices, 5028, 7) - - { 0x0F, 0x10 }, - { 0x20, 0xC7 }, - { 0x31, 0xC0 }, - { 0x42, 0x78 }, - { 0x53, 0xBE }, - { 0x64, 0x89 }, - { 0x75, 0x10 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetTile -// ****************************************************************** -// Accurately this one ?SetTileNoWait@D3D@@YGXKPBU_D3DTILE@@@Z -OOVPA_NO_XREF(D3DDevice_SetTile, 5028, 11) - - // D3DDevice_SetTile+0x06 : sub esp, 0x18 - { 0x06, 0x83 }, - { 0x07, 0xEC }, - { 0x08, 0x18 }, - - // D3DDevice_SetTile+0x15 : cmp [esi+4], eax - { 0x15, 0x39 }, - { 0x16, 0x46 }, - { 0x17, 0x04 }, - - // D3DDevice_SetTile+0x3D : lea edi, [edx+ecx*8+0xXXXX] - { 0x3D, 0x8D }, - { 0x3E, 0xBC }, - { 0x3F, 0xCA }, - { 0x42, 0x00 }, - { 0x43, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 5028, 13) - - { 0x05, 0x0D }, - - { 0x0A, 0x56 }, - { 0x0B, 0x57 }, - - { 0x18, 0x00 }, - { 0x19, 0x00 }, - { 0x1A, 0xB9 }, - { 0x1B, 0x06 }, - { 0x1C, 0x00 }, - { 0x1D, 0x00 }, - { 0x1E, 0x00 }, - { 0x1F, 0xF3 }, - - { 0x23, 0xC2 }, - { 0x24, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_Clear -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Clear, 5028, 8) - { 0x1D, 0x8A }, - { 0x3C, 0x8B }, - { 0x5B, 0x00 }, - { 0x7A, 0xFD }, - { 0x99, 0x25 }, - { 0xB8, 0x00 }, - { 0xD7, 0x75 }, - { 0xF6, 0xFF }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_DrawVertices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVertices, 5028, 7) - - { 0x12, 0x8B }, - { 0x26, 0x8B }, - { 0x37, 0x00 }, - { 0x4A, 0x27 }, - { 0x5D, 0x89 }, - { 0x70, 0x75 }, - { 0x83, 0x40 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_DrawIndexedVertices // ****************************************************************** @@ -462,23 +102,6 @@ OOVPA_NO_XREF(D3DDevice_DrawIndexedVertices, 5028, 8) { 0xFE, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetVertexData2f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData2f, 5028, 8) - - { 0x07, 0x8B }, - { 0x0C, 0x72 }, - { 0x13, 0x8B }, - { 0x1A, 0x80 }, - { 0x21, 0x0C }, - { 0x28, 0x89 }, - { 0x2F, 0xC0 }, - { 0x36, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_LoadVertexShader // ****************************************************************** @@ -493,23 +116,6 @@ OOVPA_NO_XREF(D3DDevice_LoadVertexShader, 5028, 7) { 0x4B, 0x5E }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetShaderConstantMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetShaderConstantMode, 5028, 8) - - { 0x1D, 0xFD }, - { 0x3C, 0x8B }, - { 0x5B, 0x0B }, - { 0x7A, 0x56 }, - { 0x99, 0xC0 }, - { 0xB8, 0x00 }, - { 0xD7, 0x89 }, - { 0xF6, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVertexShader // ****************************************************************** @@ -538,22 +144,6 @@ OOVPA_NO_XREF(D3DDevice_SetVertexShader, 5028, 14) { 0xB4, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_Swap -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Swap, 5028, 7) - - { 0x1B, 0xE8 }, - { 0x38, 0xC3 }, - { 0x55, 0xC0 }, - { 0x72, 0x3F }, - { 0x8F, 0x8E }, - { 0xAC, 0xC6 }, - { 0xC9, 0xC0 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::SetFence // ****************************************************************** @@ -624,30 +214,6 @@ OOVPA_NO_XREF(D3D_KickOffAndWaitForIdle, 5028, 9) { 0x10, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 5028, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x52 : mov edx, [eax+0x15C0] - { 0x52, 0x8B }, - { 0x53, 0x90 }, - { 0x54, 0xC0 }, - { 0x55, 0x15 }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVertexShaderConstantNotInline // ****************************************************************** @@ -800,47 +366,6 @@ OOVPA_XREF(D3D_CommonSetRenderTarget, 5028, 1+12, { 0x7F, 0x05 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5028 version -// ****************************************************************** -// * D3D_CommonSetRenderTarget -// ****************************************************************** -OOVPA_XREF(D3D_CommonSetRenderTarget, 5028, 10, - - XREF_D3D_CommonSetRenderTarget, - XRefZero) - - { 0x06, 0x24 }, - { 0x07, 0x24 }, - { 0x08, 0x55 }, - { 0x09, 0x56 }, - { 0x0A, 0x8B }, - { 0x35, 0x8B }, - { 0x3C, 0x96 }, - { 0x47, 0xC4 }, - { 0x57, 0x10 }, - { 0x67, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_PersistDisplay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PersistDisplay, 5028, 10) - - { 0x01, 0xEC }, - { 0x02, 0x08 }, - { 0x03, 0x53 }, - { 0x04, 0x8B }, - { 0x05, 0x1D }, - { 0x11, 0xC0 }, - { 0x12, 0x74 }, - { 0x13, 0x0F }, - { 0x23, 0x8B }, - { 0x24, 0x83 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_LazySetStateVB // ****************************************************************** @@ -890,52 +415,6 @@ OOVPA_XREF(D3DDevice_BeginPush, 5028, 1+9, { 0x15, 0x04 }, OOVPA_END; -#if 0 -// ****************************************************************** -// * D3DDevice_BeginPush -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginPush, 5028, 6) - - { 0x06, 0x6A }, - { 0x07, 0x00 }, - { 0x0D, 0x8B }, - { 0x0E, 0x44 }, - { 0x12, 0x89 }, - { 0x16, 0xE9 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_End -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_End, 5028, 13) - - // D3DDevice_End+0x00 : push esi - { 0x00, 0x56 }, - - // D3DDevice_End+0x13 : mov dword ptr [eax], 0x417FC - { 0x13, 0xC7 }, - { 0x14, 0x00 }, - { 0x15, 0xFC }, - { 0x16, 0x17 }, - { 0x17, 0x04 }, - { 0x18, 0x00 }, - - // D3DDevice_End+0x28 : test ah, 0x10 - { 0x28, 0xF6 }, - { 0x29, 0xC4 }, - { 0x2A, 0x10 }, - - // D3DDevice_End+0x2B : jz +0x07 - { 0x2B, 0x74 }, - { 0x2C, 0x07 }, - - // D3DDevice_End+0x3C : retn - { 0x3C, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_IsFencePending // ****************************************************************** @@ -953,51 +432,6 @@ OOVPA_XREF(D3DDevice_IsFencePending, 5028, 1+5, { 0x1C, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4531 version -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 5028, 8) - - { 0x0F, 0x89 }, - { 0x10, 0x88 }, - { 0x11, 0xA8 }, - { 0x12, 0x1F }, - { 0x70, 0x4F }, - { 0x78, 0x8B }, - { 0x80, 0xCA }, - { 0x88, 0x8B }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetOverlayUpdateStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetOverlayUpdateStatus, 5028, 12) - - // D3DDevice_GetOverlayUpdateStatus+0x05 : mov ecx, [eax+0x2BA8] - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0xA8 }, - { 0x08, 0x1F }, - - // D3DDevice_GetOverlayUpdateStatus+0x0C : mov esi, [eax+0x2580] - { 0x0C, 0x8B }, - { 0x0D, 0xB0 }, - { 0x0E, 0x80 }, - { 0x0F, 0x19 }, - - // D3DDevice_GetOverlayUpdateStatus+0x16 : setnz dl - { 0x16, 0x0F }, - { 0x17, 0x95 }, - { 0x18, 0xC2 }, - - // D3DDevice_GetOverlayUpdateStatus+0x1C : retn - { 0x1C, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::CDevice::KickOff // ****************************************************************** @@ -1016,53 +450,6 @@ OOVPA_XREF(D3DDevice_KickOff, 5028, 8, { 0x7E, 0xBA }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetLightEnable -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetLightEnable, 5028, 1+26, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x05, XREF_D3DDEVICE ), // Derived - - { 0x00, 0x8B }, - { 0x01, 0x4C }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - { 0x04, 0xA1 }, - { 0x09, 0x8B }, - { 0x0A, 0x90 }, - { 0x0B, 0x80 }, - { 0x0C, 0x04 }, - - { 0x0D, 0x00 }, - { 0x0E, 0x00 }, - { 0x0F, 0x8B }, - { 0x10, 0x80 }, - // { 0x11, 0x88 }, // 88 vs 94 - - // { 0x12, 0x04 }, // 04 vs 03 - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x8D }, - { 0x16, 0x0C }, - - { 0x17, 0xC9 }, - { 0x18, 0xC1 }, - { 0x19, 0xE1 }, - { 0x1A, 0x04 }, - { 0x1B, 0x03 }, - - { 0x1C, 0xCA }, - { 0x1D, 0x85 }, - { 0x1E, 0xC0 }, - { 0x1F, 0x74 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BeginStateBig // ****************************************************************** @@ -1225,30 +612,6 @@ OOVPA_XREF(D3D_MakeRequestedSpace, 5028, 28, // Also for 5344 { 0x1F, 0x03 }, OOVPA_END; -#if 0 // Moved to 5120 -// ****************************************************************** -// * D3DDevice_RunPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_RunPushBuffer, 5120, 13) - - { 0x0B, 0x57 }, - { 0x10, 0xE8 }, - - { 0x15, 0x8B }, - { 0x1F, 0x01 }, - - { 0x8D, 0x8B }, - { 0x8E, 0x4E }, - { 0x8F, 0x30 }, - { 0x90, 0x8B }, - { 0x91, 0x11 }, - { 0x92, 0x8B }, - { 0x93, 0x4E }, - { 0x94, 0x2C }, - { 0x95, 0x8B }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetShaderConstantMode // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5233.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5233.inl index e292c5ded..fb1f6349b 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5233.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5233.inl @@ -32,181 +32,6 @@ // * // ****************************************************************** -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetDisplayFieldStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayFieldStatus, 5233, 7) - - { 0x06, 0x90 }, - { 0x0E, 0x04 }, - { 0x16, 0x00 }, - { 0x1E, 0x56 }, - { 0x26, 0xD2 }, - { 0x2E, 0x89 }, - { 0x36, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4627 -// ****************************************************************** -// * D3DDevice_SetVertexShaderConstantNotInlineFast -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShaderConstantNotInlineFast, 5233, 13) - - // D3DDevice_SetVertexShaderConstantNotInlineFast+0x00 : push esi - { 0x00, 0x56 }, - - // D3DDevice_SetVertexShaderConstantNotInlineFast+0x26 : cmp eax, 0x10 - { 0x26, 0x83 }, - { 0x27, 0xF8 }, - { 0x28, 0x10 }, - - // D3DDevice_SetVertexShaderConstantNotInlineFast+0x29 : jnb +0x1F - { 0x29, 0x73 }, - { 0x2A, 0x1F }, - - // D3DDevice_SetVertexShaderConstantNotInlineFast+0x33 : or eax, 0x0B80 - { 0x33, 0x0D }, - { 0x34, 0x80 }, - { 0x35, 0x0B }, - { 0x36, 0x00 }, - - // D3DDevice_SetVertexShaderConstantNotInlineFast+0x3B : rep movsd - { 0x3B, 0xF3 }, - { 0x3C, 0xA5 }, - - // D3DDevice_SetVertexShaderConstantNotInlineFast+0x43 : emms - { 0x43, 0x0F }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetPixelShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShader, 5233, 7) - - { 0x1E, 0x75 }, - { 0x3E, 0x0D }, - { 0x60, 0x8B }, - { 0x7E, 0x04 }, - { 0x9E, 0x20 }, - { 0xBE, 0x08 }, - { 0xE1, 0xF6 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_CreateTexture2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateTexture2, 5233, 12) - - // D3DDevice_CreateTexture2+0x04 : lea eax, [esp+0x20] - { 0x04, 0x8D }, - { 0x07, 0x20 }, - - // D3DDevice_CreateTexture2+0x10 : setz dl - { 0x10, 0x0F }, - { 0x11, 0x94 }, - { 0x12, 0xC2 }, - - // D3DDevice_CreateTexture2+0x2E : push 0x00 - { 0x2E, 0x6A }, - { 0x2F, 0x00 }, - - // D3DDevice_CreateTexture2+0x57 : call [abs] - { 0x57, 0xE8 }, - - // D3DDevice_CreateTexture2+0x7C : jnz +0x0D - { 0x7C, 0x75 }, - { 0x7D, 0x0D }, - - // D3DDevice_CreateTexture2+0xB2 : retn 0x1C - { 0xB2, 0xC2 }, - { 0xB3, 0x1C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_CullMode -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_CullMode, 5233, 2+13, - - XREF_D3DDevice_SetRenderState_CullMode, - XRefTwo) - - XREF_ENTRY( 0x03, XREF_D3DDEVICE ), // Derived - - XREF_ENTRY( 0x2B, XREF_D3DRS_CULLMODE ), // Derived - - // D3DDevice_SetRenderState_CullMode+0x19 : mov dword ptr [eax], 0x40308 - { 0x19, 0xC7 }, - { 0x1B, 0x08 }, - { 0x1C, 0x03 }, - { 0x1D, 0x04 }, - - // D3DDevice_SetRenderState_CullMode+0x24 : add eax, 8 - { 0x24, 0x83 }, - { 0x25, 0xC0 }, - { 0x26, 0x08 }, - - // D3DDevice_SetRenderState_CullMode+0x30 : retn 4 - { 0x30, 0xC2 }, - { 0x31, 0x04 }, - - // D3DDevice_SetRenderState_CullMode+0x53 : add edx, 0x404 - { 0x53, 0x81 }, - { 0x54, 0xC2 }, - { 0x55, 0x04 }, - { 0x56, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_SetTexture -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetTexture, 5233, 1+10, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x13, XREF_OFFSET_D3DDEVICE_M_TEXTURES ), // Derived - - { 0x16, 0x00 }, - { 0x17, 0x85 }, - { 0x18, 0xC0 }, - { 0x19, 0x89 }, - { 0x1A, 0x6C }, - { 0x7E, 0x00 }, - { 0x9E, 0x00 }, - { 0xBE, 0x89 }, - { 0xDE, 0xFF }, - { 0xFE, 0xE2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_Swap -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Swap, 5233, 9) - - { 0x1B, 0xE8 }, - { 0x48, 0x00 }, - { 0x49, 0x48 }, - { 0x4A, 0x83 }, - { 0x4B, 0xE0 }, - { 0x4C, 0x01 }, - { 0x6D, 0xFB }, - { 0x7C, 0x6A }, - { 0xA6, 0xE8 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_UpdateOverlay // ****************************************************************** @@ -227,59 +52,6 @@ OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 5233, 12) // Up to 5849 { 0x87, 0xFF }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5233 version -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 5233, 11) - - // D3DDevice_UpdateOverlay+0x13 : mov [eax+0x17BC], ecx - { 0x13, 0x89 }, - { 0x14, 0x88 }, - { 0x15, 0xBC }, - { 0x16, 0x17 }, - - // D3DDevice_UpdateOverlay+0x92 : and eax, 0xFFFFFFFE - { 0x92, 0x83 }, - { 0x93, 0xE0 }, - { 0x94, 0xFE }, - - // D3DDevice_UpdateOverlay+0xB0 : mov [esi+0x8930], eax - { 0xB0, 0x89 }, - { 0xB1, 0x86 }, - { 0xB2, 0x30 }, - { 0xB3, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetOverlayUpdateStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetOverlayUpdateStatus, 5233, 12) - - // D3DDevice_GetOverlayUpdateStatus+0x05 : mov ecx, [eax+0x1FB0] - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0xB0 }, - { 0x08, 0x1F }, - - // D3DDevice_GetOverlayUpdateStatus+0x0C : mov esi, [eax+0x1988] - { 0x0C, 0x8B }, - { 0x0D, 0xB0 }, - { 0x0E, 0x88 }, - { 0x0F, 0x19 }, - - // D3DDevice_GetOverlayUpdateStatus+0x16 : setnz dl - { 0x16, 0x0F }, - { 0x17, 0x95 }, - { 0x18, 0xC2 }, - - // D3DDevice_GetOverlayUpdateStatus+0x1C : retn - { 0x1C, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -305,79 +77,6 @@ OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5233, 11) { 0x23, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * IDirectD3DDevice8_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 5233, 8) - - { 0x07, 0x8B }, - { 0x0C, 0x00 }, - { 0x13, 0xCF }, - { 0x1A, 0x10 }, - { 0x21, 0x05 }, - { 0x28, 0x00 }, - { 0x2F, 0x89 }, - { 0x36, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5120 -// ****************************************************************** -// * D3DDevice_CopyRects -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CopyRects, 5120, 8) - - { 0x1E, 0xE1 }, - { 0x42, 0x84 }, - { 0x5E, 0x24 }, - { 0x7E, 0x8B }, - { 0x9E, 0x1C }, - { 0xBE, 0x00 }, - { 0xDE, 0xBD }, - { 0xFE, 0x4C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetScissors -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScissors, 5233, 8) - - { 0x07, 0x2C }, - { 0x28, 0x44 }, - { 0x60, 0x38 }, - { 0x7D, 0x54 }, - { 0xAC, 0x03 }, - { 0xB8, 0xD9 }, - { 0xD4, 0x1C }, - { 0xFE, 0x4C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetScreenSpaceOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScreenSpaceOffset, 5233, 8) - - // D3DDevice_SetScreenSpaceOffset+0x13 : fstp [esi+0x0AA8] - { 0x13, 0xD9 }, - { 0x14, 0x9E }, - { 0x15, 0xA8 }, - { 0x16, 0x0A }, - - // D3DDevice_SetScreenSpaceOffset+0x33 : jb +0x05 - { 0x33, 0x72 }, - { 0x34, 0x05 }, - - // D3DDevice_SetScreenSpaceOffset+0x46 : retn 0x08 - { 0x46, 0xC2 }, - { 0x47, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_MultiSampleMode // ****************************************************************** @@ -409,149 +108,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMode, 5233, 13) { 0x26, 0x00 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleRenderTargetMode -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 5233, 1+7, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x0B, XREF_D3DRS_MULTISAMPLERENDERTARGETMODE ), // Derived - - { 0x03, 0x04 }, - { 0x0F, 0x8B }, - { 0x15, 0x3B }, - { 0x1C, 0x14 }, - { 0x1D, 0x8D }, - { 0x2C, 0xE8 }, - { 0x32, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5028 version -// ****************************************************************** -// * D3D::CommonSetRenderTarget -// ****************************************************************** -OOVPA_XREF(D3D_CommonSetRenderTarget, 5233, 8, - - XREF_D3D_CommonSetRenderTarget, - XRefZero) - - { 0x02, 0x1C }, - { 0x20, 0x30 }, - { 0x6B, 0x06 }, - { 0x85, 0x4C }, - { 0xA5, 0x10 }, - { 0xB8, 0x0C }, - { 0xDC, 0xD9 }, - { 0xFF, 0x75 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_BlockOnFence -// ****************************************************************** -OOVPA_XREF(D3DDevice_BlockOnFence, 5233, 1+5, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x08, XREF_D3D_BlockOnTime ), - - { 0x00, 0x8B }, - { 0x02, 0x24 }, - { 0x04, 0x6A }, - { 0x06, 0x50 }, - { 0x0D, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPalette -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPalette, 5233, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PALETTES ), // Derived - - // D3DDevice_SetPalette+0x0D : mov eax, [edi+esi*4+0x0A88] - { 0x0D, 0x8B }, - { 0x0E, 0x84 }, - { 0x0F, 0xBE }, - { 0x10, 0x48 }, - { 0x11, 0x0B }, - - // D3DDevice_SetPalette+0x51 : add ebp, 0x80000 - { 0x51, 0x81 }, - { 0x52, 0xC5 }, - { 0x53, 0x00 }, - { 0x54, 0x00 }, - { 0x55, 0x08 }, - - // D3DDevice_SetPalette+0x8A : retn 0x08 - { 0x8A, 0xC2 }, - { 0x8B, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 5233, 12) - - // D3DDevice_SetFlickerFilter+0x1C : mov eax, [eax+0x17C8] - { 0x1C, 0x8B }, - { 0x1D, 0x80 }, - { 0x1E, 0xC8 }, - { 0x1F, 0x17 }, - - // D3DDevice_SetFlickerFilter+0x22 : push 0; push esi; push 0x0B; push eax - { 0x22, 0x6A }, - { 0x23, 0x00 }, - { 0x24, 0x56 }, - { 0x25, 0x6A }, - { 0x26, 0x0B }, - { 0x27, 0x50 }, - - // D3DDevice_SetFlickerFilter+0x3F : retn 0x04 - { 0x3F, 0xC2 }, - { 0x40, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSoftDisplayFilter, 5233, 12) - - // D3DDevice_SetSoftDisplayFilter+0x25 : mov edx, [eax+0x17C8] - { 0x25, 0x8B }, - { 0x26, 0x90 }, - { 0x27, 0xC8 }, - { 0x28, 0x17 }, - - // D3DDevice_SetSoftDisplayFilter+0x2B : push 0; push esi; push 0x0E; push edx - { 0x2B, 0x6A }, - { 0x2C, 0x00 }, - { 0x2D, 0x56 }, - { 0x2E, 0x6A }, - { 0x2F, 0x0E }, - { 0x30, 0x52 }, - - // D3DDevice_SetSoftDisplayFilter+0x4E : retn 0x04 - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVerticalBlankCallback // ****************************************************************** @@ -604,22 +160,6 @@ OOVPA_NO_XREF(D3DDevice_SetSwapCallback, 5233, 12) { 0x11, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetVertexData4f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4f, 5233, 7) - - { 0x0A, 0x46 }, - { 0x16, 0x08 }, - { 0x22, 0x09 }, - { 0x2E, 0x24 }, - { 0x3A, 0x24 }, - { 0x46, 0x8B }, - { 0x52, 0x14 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderTargetFast // ****************************************************************** @@ -697,37 +237,3 @@ OOVPA_NO_XREF(D3DDevice_GetVisibilityTestResult, 5233, 7) { 0x51, 0x0A }, { 0x5F, 0x0C }, OOVPA_END; - -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_SetPixelShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderConstant, 5233, 9) - - { 0x1A, 0x0C }, - { 0x1B, 0x8B }, - { 0x1C, 0x45 }, - { 0x1D, 0x10 }, - { 0x1E, 0x85 }, - { 0x5B, 0xF3 }, - { 0x60, 0xE0 }, - { 0x64, 0xC0 }, - { 0x68, 0x2D }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_EndPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 5233, 7) - - { 0x11, 0x8D }, - { 0x22, 0x50 }, - { 0x34, 0x0C }, - { 0x46, 0x08 }, - { 0x58, 0x00 }, - { 0x6D, 0x8B }, - { 0x7C, 0x88 }, -OOVPA_END; -#endif diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5344.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5344.inl index 76fcdc016..e72285769 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5344.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5344.inl @@ -32,104 +32,6 @@ // * // ****************************************************************** -#if 0 // Moved to 5028 -// ****************************************************************** -// * Direct3D_CreateDevice -// ****************************************************************** -OOVPA_NO_XREF(Direct3D_CreateDevice, 5344, 20) // ONLY for 5344, 5558 and later use generic 3911 version - { 0x00, 0x55 }, - { 0x01, 0x8B }, - { 0x02, 0xEC }, - { 0x03, 0xA1 }, - - { 0x08, 0x85 }, - { 0x09, 0xC0 }, - { 0x0A, 0x75 }, - { 0x0B, 0x0A }, - { 0x0C, 0xC7 }, - { 0x0D, 0x05 }, - - { 0x12, 0x00 }, - { 0x13, 0x00 }, - { 0x14, 0x08 }, - { 0x15, 0x00 }, - { 0x16, 0xA1 }, - - { 0x1B, 0x85 }, - { 0x1C, 0xC0 }, - { 0x1D, 0x75 }, - { 0x1E, 0x0A }, - { 0x1F, 0xC7 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5028 -// ****************************************************************** -// * D3D_MakeRequestedSpace -// ****************************************************************** -OOVPA_XREF(D3D_MakeRequestedSpace, 5344, 28, - - XREF_D3D_MakeRequestedSpace, - XRefZero) - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x08 }, - { 0x03, 0x56 }, - { 0x04, 0x8B }, - { 0x05, 0x35 }, - - { 0x0A, 0xF6 }, - { 0x0B, 0x46 }, - { 0x0C, 0x08 }, - { 0x0D, 0x04 }, - { 0x0E, 0x8B }, - { 0x0F, 0x0E }, - { 0x10, 0x57 }, - { 0x11, 0x74 }, - { 0x12, 0x26 }, - { 0x13, 0x8B }, - { 0x14, 0x86 }, - { 0x15, 0x4C }, - { 0x16, 0x03 }, - { 0x17, 0x00 }, - { 0x18, 0x00 }, - { 0x19, 0x8B }, - { 0x1A, 0x78 }, - { 0x1B, 0x04 }, - { 0x1C, 0x8B }, - { 0x1D, 0x96 }, - { 0x1E, 0x50 }, - { 0x1F, 0x03 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetRenderState_Dxt1NoiseEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_Dxt1NoiseEnable, 5344, 10) - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+0D : mov eax, [edi+XXXXh] - { 0x0D, 0x8B }, - { 0x0E, 0x87 }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+1D : and dl, 3Ch - { 0x1D, 0x80 }, - { 0x1E, 0xE2 }, - { 0x1F, 0x3C }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+20 : xor esi, esi - { 0x20, 0x33 }, - { 0x21, 0xF6 }, - - // D3DDevice_SetRenderState_Dxt1NoiseEnable+22 : cmp dl, 20h - { 0x22, 0x80 }, - { 0x23, 0xFA }, - { 0x24, 0x20 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetLight // ****************************************************************** @@ -166,23 +68,6 @@ OOVPA_XREF(D3DDevice_SetLight, 5344, 15, { 0x100, 0x02 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_SetLight -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetLight, 5344, 8) - - { 0x1E, 0x00 }, - { 0x3E, 0x89 }, - { 0x5E, 0x00 }, - { 0x7E, 0x03 }, - { 0x9E, 0xC8 }, - { 0xBE, 0xC9 }, - { 0xDE, 0x03 }, - { 0xFE, 0xC1 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_MultiSampleRenderTargetMode // ****************************************************************** @@ -230,54 +115,6 @@ OOVPA_NO_XREF(D3DDevice_SetRenderState_TwoSidedLighting, 5344, 13) { 0x7E, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetScreenSpaceOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScreenSpaceOffset, 5344, 7) - - { 0x08, 0x44 }, - { 0x12, 0xCE }, - { 0x1F, 0xD8 }, - { 0x26, 0x0A }, - { 0x30, 0x3B }, - { 0x3A, 0x8B }, - { 0x44, 0x06 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 5344, 7) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - { 0x0E, 0x0A }, - { 0x12, 0x06 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetBackBuffer2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackBuffer2, 5344, 7) - - { 0x07, 0x8B }, - { 0x10, 0x01 }, - { 0x19, 0x15 }, - { 0x22, 0x8B }, - { 0x2B, 0xC0 }, - { 0x34, 0x15 }, - { 0x3D, 0x8B }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_LightEnable // ****************************************************************** @@ -375,32 +212,6 @@ OOVPA_XREF(D3DDevice_GetLightEnable, 5344, 1+26, */ OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetSoftDisplayFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSoftDisplayFilter, 5344, 12) - - // D3DDevice_SetSoftDisplayFilter+0x25 : mov edx, [eax+0x17F8] - { 0x25, 0x8B }, - { 0x26, 0x90 }, - { 0x27, 0xF8 }, - { 0x28, 0x17 }, - - // D3DDevice_SetSoftDisplayFilter+0x2B : push 0; push esi; push 0x0E; push edx - { 0x2B, 0x6A }, - { 0x2C, 0x00 }, - { 0x2D, 0x56 }, - { 0x2E, 0x6A }, - { 0x2F, 0x0E }, - { 0x30, 0x52 }, - - // D3DDevice_SetSoftDisplayFilter+0x4E : retn 0x04 - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetMaterial // ****************************************************************** @@ -421,74 +232,6 @@ OOVPA_NO_XREF(D3DDevice_SetMaterial, 5344, 11) { 0x2E, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by generic another 5344 version -// ****************************************************************** -// * D3DDevice_SetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetMaterial, 5344, 9) - - { 0x04, 0x08 }, - { 0x0C, 0x81 }, - { 0x0E, 0xE0 }, - { 0x10, 0x00 }, - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 5344, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x52 : mov edx, [eax+0x15F4] - { 0x52, 0x8B }, - { 0x53, 0x90 }, - { 0x54, 0xF4 }, - { 0x55, 0x15 }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 5344, 12) - - // D3DDevice_SetFlickerFilter+0x1C : mov eax, [eax+0x17C8] - { 0x1C, 0x8B }, - { 0x1D, 0x80 }, - { 0x1E, 0xF8 }, - { 0x1F, 0x17 }, - - // D3DDevice_SetFlickerFilter+0x22 : push 0; push esi; push 0x0B; push eax - { 0x22, 0x6A }, - { 0x23, 0x00 }, - { 0x24, 0x56 }, - { 0x25, 0x6A }, - { 0x26, 0x0B }, - { 0x27, 0x50 }, - - // D3DDevice_SetFlickerFilter+0x3F : retn 0x04 - { 0x3F, 0xC2 }, - { 0x40, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetViewport // ****************************************************************** @@ -528,24 +271,6 @@ OOVPA_NO_XREF(D3DDevice_SetTransform, 5344, 15) { 0x35, 0x35 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_SetTransform -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetTransform, 5344, 9) - - { 0x01, 0x44 }, - { 0x1E, 0x8B }, - { 0x3E, 0x00 }, - { 0x5E, 0xC4 }, - { 0x7E, 0x62 }, - { 0x9E, 0x00 }, - { 0xBE, 0x42 }, - { 0xDE, 0x42 }, - { 0xFE, 0xCB }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetScissors // ****************************************************************** @@ -589,40 +314,6 @@ OOVPA_NO_XREF(D3DDevice_SetSwapCallback, 5344, 7) { 0x10, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5233 version -// ****************************************************************** -// * D3DDevice_SetRenderTargetFast -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderTargetFast, 5344, 8) - - { 0x1D, 0xC9 }, - { 0x3C, 0x89 }, - { 0x5F, 0x8B }, - { 0x7A, 0x04 }, - { 0x99, 0x04 }, - { 0xB8, 0x02 }, - { 0xD7, 0x0C }, - { 0xF6, 0xC5 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SelectVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SelectVertexShader, 5344, 8) - - { 0x0E, 0x49 }, - { 0x10, 0x8D }, - { 0x14, 0x86 }, - { 0x18, 0x00 }, - { 0x1C, 0x03 }, - { 0x36, 0x4F }, - { 0x38, 0x83 }, - { 0x3C, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderTarget // ****************************************************************** @@ -647,58 +338,6 @@ OOVPA_XREF(D3DDevice_SetRenderTarget, 5344, 1+9, { 0x34, 0x14 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPalette -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPalette, 5344, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PALETTES ), // Derived - - // D3DDevice_SetPalette+0x0D : mov eax, [esi+edi*4+0B78h] - { 0x0D, 0x8B }, - { 0x0E, 0x84 }, - { 0x0F, 0xBE }, - { 0x10, 0x78 }, - { 0x11, 0x0B }, - - // D3DDevice_SetPalette+0x51 : add ebp, 0x80000 - { 0x51, 0x81 }, - { 0x52, 0xC5 }, - { 0x53, 0x00 }, - { 0x54, 0x00 }, - { 0x55, 0x08 }, - - // D3DDevice_SetPalette+0x8A : retn 0x08 - { 0x8A, 0xC2 }, - { 0x8B, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5028 version -// ****************************************************************** -// * D3DDevice_IsBusy -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_IsBusy, 5344, 12) - - { 0x05, 0x8B }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - { 0x0B, 0x8B }, - { 0x0C, 0x88 }, - { 0x0D, 0x40 }, - { 0x0E, 0x32 }, - { 0x0F, 0x00 }, - { 0x10, 0x00 }, - { 0x14, 0x32 }, - { 0x18, 0x06 }, - { 0x1C, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreateVertexBuffer2 // ****************************************************************** @@ -758,47 +397,6 @@ OOVPA_NO_XREF(D3DDevice_DrawVerticesUP, 5344, 16) { 0x51, 0x8B }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_DrawVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVerticesUP, 5344, 10) - - // D3DDevice_DrawVerticesUP+0x03 : sub esp, 0x14 - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x14 }, - - // D3DDevice_DrawVerticesUP+0x37 : mov edx, [edi+834h] - { 0x37, 0x8B }, - { 0x38, 0x97 }, - { 0x39, 0x34 }, - { 0x3A, 0x08 }, - - // D3DDevice_DrawVerticesUP+0xC4 : cmp esi, 0x80 - { 0xC4, 0x81 }, - { 0xC5, 0xFE }, - { 0xC6, 0x80 }, -OOVPA_END; -#endif - -#if 0 // Used 4361 -// ****************************************************************** -// * D3DDevice_SetVertexDataColor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexDataColor, 5344, 8) - - { 0x08, 0x06 }, - { 0x0C, 0x57 }, - { 0x0F, 0xE8 }, - { 0x15, 0x4C }, - { 0x19, 0x14 }, - { 0x1A, 0x8D }, - { 0x1B, 0x40 }, - { 0x1C, 0x19 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_End // ****************************************************************** @@ -823,24 +421,6 @@ OOVPA_NO_XREF(D3DDevice_End, 5344, 14) { 0x40, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_End -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_End, 5344, 9) - - { 0x08, 0x06 }, - { 0x0A, 0x46 }, - { 0x0E, 0xE8 }, - { 0x15, 0xFC }, - { 0x17, 0x04 }, - { 0x19, 0xC7 }, - { 0x1A, 0x40 }, - { 0x1B, 0x04 }, - { 0x40, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreatePixelShader // ****************************************************************** @@ -866,120 +446,6 @@ OOVPA_NO_XREF(D3DDevice_CreatePixelShader, 5344, 11) { 0x46, 0x08 }, OOVPA_END; -#if 0 // Moved to 5233 -// ****************************************************************** -// * D3DDevice_SetPixelShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderConstant, 5344, 9) - - { 0x1A, 0x0C }, - { 0x1B, 0x8B }, - { 0x1C, 0x45 }, - { 0x1D, 0x10 }, - { 0x1E, 0x85 }, - { 0x5B, 0xF3 }, - { 0x60, 0xE0 }, - { 0x64, 0xC0 }, - { 0x68, 0x2D }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetOverlayUpdateStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetOverlayUpdateStatus, 5344, 12) - - // D3DDevice_GetOverlayUpdateStatus+0x05 : mov ecx, [eax+1FE0h] - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0xE0 }, - { 0x08, 0x1F }, - - // D3DDevice_GetOverlayUpdateStatus+0x0C : mov esi, [eax+19B8h] - { 0x0C, 0x8B }, - { 0x0D, 0xB0 }, - { 0x0E, 0xB8 }, - { 0x0F, 0x19 }, - - // D3DDevice_GetOverlayUpdateStatus+0x16 : setnz dl - { 0x16, 0x0F }, - { 0x17, 0x95 }, - { 0x18, 0xC2 }, - - // D3DDevice_GetOverlayUpdateStatus+0x1C : retn - { 0x1C, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5233 version -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 5344, 10) - - { 0x0A, 0xB8 }, - { 0x13, 0x89 }, - { 0x14, 0x88 }, - { 0x15, 0xF0 }, - { 0x16, 0x17 }, - { 0x74, 0x4F }, - { 0x79, 0x44 }, - { 0x7D, 0x40 }, - { 0x80, 0xE1 }, - { 0x84, 0xCA }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * IDirectD3DDevice8_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 5344, 8) - - { 0x07, 0x8B }, - { 0x0C, 0x00 }, - { 0x13, 0xCF }, - { 0x1A, 0x1C }, - { 0x21, 0x05 }, - { 0x28, 0x00 }, - { 0x2F, 0x89 }, - { 0x36, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5233 -// ****************************************************************** -// * D3DDevice_GetVisibilityTestResult -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVisibilityTestResult, 5344, 7) - - { 0x0E, 0x08 }, - { 0x10, 0xFF }, - { 0x2A, 0x16 }, - { 0x3C, 0x76 }, - { 0x3F, 0x0C }, - { 0x51, 0x0A }, - { 0x5F, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_PersistDisplay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PersistDisplay, 5344, 7) - - { 0x1E, 0x15 }, - { 0x3A, 0xAB }, - { 0x3B, 0xF8 }, - { 0x3C, 0x17 }, - { 0x3D, 0x00 }, - { 0x4E, 0xF5 }, - { 0x6E, 0x01 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_DeleteVertexShader // ****************************************************************** @@ -1040,23 +506,6 @@ OOVPA_NO_XREF(D3DDevice_GetMaterial, 5344, 8) { 0x1A, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DPalette_Lock -// ****************************************************************** -OOVPA_NO_XREF(D3DPalette_Lock, 5344, 8) - - { 0x04, 0x8B }, - { 0x0A, 0xE8 }, - { 0x13, 0x89 }, - { 0x14, 0x02 }, - { 0x15, 0x33 }, - { 0x16, 0xC0 }, - { 0x17, 0xC2 }, - { 0x18, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetBackMaterial // ****************************************************************** @@ -1092,23 +541,6 @@ OOVPA_NO_XREF(D3DDevice_SetBackMaterial, 5344, 11) { 0x2E, 0x04 }, OOVPA_END; -#if 0 // No longer used, replaced by another 5344 version -// ****************************************************************** -// * D3DDevice_SetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackMaterial, 5344, 8) - - { 0x04, 0x08 }, - { 0x0C, 0x81 }, - { 0x0E, 0x24 }, - { 0x10, 0x00 }, - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetProjectionViewportMatrix // ****************************************************************** @@ -1134,41 +566,6 @@ OOVPA_NO_XREF(D3DDevice_GetProjectionViewportMatrix, 5344, 16) // Up to 5455 { 0x1B, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_GetProjectionViewportMatrix -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetProjectionViewportMatrix, 5344, 7) - - { 0x02, 0x35 }, - { 0x07, 0x57 }, - { 0x0A, 0x24 }, - { 0x0E, 0x60 }, - { 0x12, 0xB9 }, - { 0x16, 0x00 }, - { 0x1A, 0x5E }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 5344, 10) - - { 0x05, 0x0D }, - { 0x0A, 0x56 }, - { 0x0B, 0x57 }, - { 0x0C, 0x8B }, - { 0x0D, 0x7C }, - { 0x0E, 0x24 }, - { 0x0F, 0x10 }, - { 0x10, 0x8D }, - { 0x11, 0x04 }, - { 0x1F, 0xF3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_CreateIndexBuffer2 // ****************************************************************** @@ -1186,48 +583,6 @@ OOVPA_XREF(D3DDevice_CreateIndexBuffer2, 5344, 7, { 0x2F, 0x48 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_SetTexture -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetTexture, 5344, 1+26, // Also for 5558, 5659, 5788, 5849, 5933 - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x13, XREF_OFFSET_D3DDEVICE_M_TEXTURES ), // Derived - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x08 }, - { 0x03, 0x53 }, - { 0x04, 0x55 }, - { 0x05, 0x8B }, - { 0x06, 0x2D }, - - { 0x0B, 0x56 }, - { 0x0C, 0x8B }, - { 0x0D, 0x74 }, - { 0x0E, 0x24 }, - { 0x0F, 0x18 }, - { 0x10, 0x8B }, - { 0x11, 0x84 }, - { 0x12, 0xB5 }, - - { 0x15, 0x00 }, - { 0x16, 0x00 }, - { 0x17, 0x85 }, - { 0x18, 0xC0 }, - { 0x19, 0x89 }, - { 0x1A, 0x6C }, - { 0x1B, 0x24 }, - { 0x1C, 0x0C }, - { 0x1D, 0x89 }, - { 0x1E, 0x44 }, - { 0x1F, 0x24 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -1253,28 +608,6 @@ OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5344, 11) { 0x23, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by another 5344 version -// ****************************************************************** -// * D3DDevice_BlockUntilVerticalBlank -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5344, 13) - - { 0x00, 0xA1 }, - { 0x05, 0x6A }, - { 0x0F, 0x00 }, - { 0x10, 0x00 }, - { 0x11, 0x00 }, - { 0x12, 0x00 }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x6A }, - { 0x16, 0x06 }, - { 0x17, 0x05 }, - { 0x1E, 0x15 }, - { 0x23, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BeginPush // ****************************************************************** @@ -1323,27 +656,6 @@ OOVPA_NO_XREF(D3DDevice_AddRef, 5344, 10) { 0x0F, 0x05 }, OOVPA_END; -#if 0 // No longer used, replaced by another 4134 version -// ****************************************************************** -// * D3DDevice_AddRef -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_AddRef, 5344, 10) - - { 0x00, 0xA1 }, - - { 0x05, 0x8B }, - { 0x09, 0x00 }, - { 0x0D, 0x88 }, - - { 0x0F, 0x05 }, - { 0x10, 0x00 }, - { 0x11, 0x00 }, - { 0x12, 0x8B }, - { 0x13, 0xC1 }, - { 0x14, 0xC3 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetShaderConstantMode // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5455.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5455.inl index 10ff8079a..122b4e44c 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5455.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5455.inl @@ -108,47 +108,6 @@ OOVPA_NO_XREF(D3DDevice_CreatePalette2, 5455, 7) { 0x52, 0x89 }, OOVPA_END; -#if 0 // Moved to 5344 -// ****************************************************************** -// * D3DDevice_SetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetMaterial, 5455, 11) - - { 0x04, 0x08 }, - - { 0x0C, 0x81 }, - { 0x0D, 0xC7 }, - { 0x0E, 0xE0 }, - { 0x0F, 0x0A }, - { 0x10, 0x00 }, - - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_GetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetMaterial, 5455, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - - { 0x0D, 0xE0 }, - { 0x0E, 0x0A }, - - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVertexShader // ****************************************************************** @@ -164,34 +123,6 @@ OOVPA_NO_XREF(D3DDevice_SetVertexShader, 5455, 8) { 0xFE, 0xC1 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetBackBuffer2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackBuffer2, 5455, 12) - - // D3DDevice_GetBackBuffer2+0x04 : cmp eax, 0xFFFFFFFF - { 0x04, 0x83 }, - { 0x05, 0xF8 }, - { 0x06, 0xFF }, - - // D3DDevice_GetBackBuffer2+0x0D : jnz +0x19 - { 0x0D, 0x75 }, - { 0x0E, 0x19 }, - - // D3DDevice_GetBackBuffer2+0x15 : mov esi, [ecx+eax*4+0x15F4] - { 0x15, 0x8B }, - { 0x16, 0xB4 }, - { 0x17, 0x81 }, - { 0x18, 0xF4 }, - { 0x19, 0x15 }, - - // D3DDevice_GetBackBuffer2+0x40 : retn 0x04 - { 0x40, 0xC2 }, - { 0x41, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVerticalBlankCallback // ****************************************************************** @@ -277,47 +208,6 @@ OOVPA_XREF(D3DDevice_GetViewport, 5455, 1+17, { 0x31, 0x04 }, OOVPA_END; -#if 0 // Moved to 5344 -// ****************************************************************** -// * D3DDevice_SetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackMaterial, 5455, 11) - - { 0x04, 0x08 }, - - { 0x0C, 0x81 }, - { 0x0D, 0xC7 }, - { 0x0E, 0x24 }, - { 0x0F, 0x0B }, - { 0x10, 0x00 }, - - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_GetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackMaterial, 5455, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - - { 0x0D, 0x24 }, - { 0x0E, 0x0B }, - - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -390,42 +280,6 @@ OOVPA_NO_XREF(D3DDevice_PersistDisplay, 5455, 12) { 0x6F, 0xE1 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5233 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMode, 5455, 9) - - { 0x03, 0x04 }, - { 0x0A, 0xA3 }, - { 0x0F, 0x8B }, - { 0x12, 0x15 }, - { 0x17, 0xF4 }, - { 0x1B, 0x75 }, - { 0x1C, 0x07 }, - { 0x24, 0xC2 }, - { 0x26, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleRenderTargetMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 5455, 9) - - { 0x03, 0x04 }, - { 0x0A, 0xA3 }, - { 0x0F, 0x8B }, - { 0x12, 0x15 }, - { 0x17, 0xF4 }, - { 0x1B, 0x74 }, - { 0x1C, 0x07 }, - { 0x24, 0xC2 }, - { 0x26, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D_SetTileNoWait // ****************************************************************** @@ -454,23 +308,6 @@ OOVPA_XREF(D3D_SetTileNoWait, 5455, 16, { 0x9B, 0xCB }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_CaptureStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CaptureStateBlock, 5455, 8) - - { 0x1E, 0x3C }, - { 0x3E, 0xC0 }, - { 0x5E, 0x7E }, - { 0x7E, 0x00 }, - { 0x9E, 0x74 }, - { 0xC0, 0x8B }, - { 0xDE, 0x83 }, - { 0xFE, 0x45 }, -OOVPA_END; -#endif - // ****************************************************************** // * CMiniport::InitHardware // ****************************************************************** @@ -562,32 +399,6 @@ OOVPA_XREF(D3DDevice_KickOff, 5455, 15, // { 0xAF, 0xC3 } OOVPA_END; -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetVertexShaderDeclaration -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderDeclaration, 5455, 14) - - { 0x00, 0x8B }, - - { 0x05, 0x48 }, - { 0x06, 0x03 }, - { 0x07, 0x83 }, - { 0x08, 0xEC }, - { 0x09, 0x14 }, - { 0x0A, 0xF6 }, - { 0x0B, 0xC1 }, - { 0x0C, 0x08 }, - - { 0x1E, 0xC2 }, - { 0x1F, 0x0C }, - - { 0x53, 0xC1 }, - { 0x54, 0x07 }, - { 0x55, 0x01 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderTarget // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5558.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5558.inl index 1ad3adeb1..e7c1dc675 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5558.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5558.inl @@ -57,364 +57,6 @@ OOVPA_XREF(D3DDevice_LazySetStateVB, 5558, 12, { 0x7B, 0x00 }, OOVPA_END; -#if 0 // Moved to 5028 -// ****************************************************************** -// * D3DDevice_BeginPush -// ****************************************************************** -OOVPA_XREF(D3DDevice_BeginPush, 5558, 1+9, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x09, XREF_D3DDevice_LazySetStateVB ), - - { 0x00, 0x8B }, - { 0x01, 0x0D }, - - { 0x06, 0x6A }, - { 0x07, 0x00 }, - - { 0x11, 0x40 }, - - { 0x12, 0x89 }, - { 0x13, 0x44 }, - { 0x14, 0x24 }, - { 0x15, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SelectVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SelectVertexShader, 5455, 12) - - { 0x00, 0x8B }, - { 0x1D, 0xBE }, - - { 0x3F, 0x00 }, - { 0x40, 0x10 }, - { 0x41, 0x00 }, - { 0x42, 0x00 }, - { 0x43, 0x8B }, - { 0x44, 0x06 }, - { 0x45, 0x3B }, - { 0x46, 0x46 }, - - { 0x58, 0x8B }, - { 0x7B, 0xE8 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_SelectVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SelectVertexShader, 5558, 7) - - { 0x10, 0x8E }, - { 0x26, 0x00 }, - { 0x3A, 0x0D }, - { 0x4F, 0x8B }, - { 0x62, 0xE1 }, - { 0x76, 0x3B }, - { 0x8A, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetVertexShaderConstant1 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShaderConstant1, 5558, 11) - - // D3DDevice_SetVertexShaderConstant1+0x05 : add eax, 0x1C - /* - { 0x05, 0x83 }, - { 0x06, 0xC0 }, - { 0x07, 0x1C }, - - // D3DDevice_SetVertexShaderConstant1+0x0E : jnb +0x2E - { 0x0E, 0x73 }, - { 0x0F, 0x2E }, - - // D3DDevice_SetVertexShaderConstant1+0x28 : mov [eax-0x10], ecx - { 0x28, 0x89 }, - { 0x29, 0x48 }, - { 0x2A, 0xF0 }, - - // D3DDevice_SetVertexShaderConstant1+0x3D : retn - { 0x3D, 0xC3 }, - - // D3DDevice_SetVertexShaderConstant1+0x47 : jmp +0xB7 - { 0x47, 0xEB }, - { 0x48, 0xB7 }, - */ - - // D3DDevice_SetVertexShaderConstant1+0x06 : add eax, 0x1C - { 0x06, 0x83 }, - { 0x07, 0xC0 }, - { 0x08, 0x1C }, - - { 0x16, 0xC7 }, - { 0x17, 0x40 }, - { 0x18, 0xE4 }, - { 0x19, 0xA4 }, - { 0x1A, 0x1E }, - { 0x1B, 0x04 }, - { 0x1C, 0x00 }, - - // D3DDevice_SetVertexShaderConstant1+0x53 : retn - { 0x53, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 4627 -// ****************************************************************** -// * D3DDevice_SetVertexShaderConstant1Fast -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShaderConstant1Fast, 5558, 11) - - // D3DDevice_SetVertexShaderConstant1Fast+0x05 : add eax, 0x1C - { 0x05, 0x83 }, - { 0x06, 0xC0 }, - { 0x07, 0x1C }, - - // D3DDevice_SetVertexShaderConstant1Fast+0x0E : jnb +0x2E - { 0x0E, 0x73 }, - { 0x0F, 0x2E }, - - // D3DDevice_SetVertexShaderConstant1Fast+0x28 : mov [eax-0x10], ecx - { 0x28, 0x89 }, - { 0x29, 0x48 }, - { 0x2A, 0xF0 }, - - // D3DDevice_SetVertexShaderConstant1Fast+0x3D : retn - { 0x3D, 0xC3 }, - - // D3DDevice_SetVertexShaderConstant1Fast+0x47 : jmp +0xB7 - { 0x47, 0xEB }, - { 0x48, 0xB7 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetViewport, 5455, 8) - - { 0x1E, 0x86 }, - { 0x3E, 0x1B }, - { 0x5E, 0x8B }, - { 0x7E, 0x6D }, - { 0x9E, 0x81 }, - { 0xBE, 0x0C }, - { 0xDE, 0x75 }, - { 0xFE, 0x85 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_CreateVertexBuffer2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateVertexBuffer2, 5455, 14) - - { 0x00, 0x56 }, - { 0x08, 0xE8 }, - - { 0x16, 0x08 }, - { 0x17, 0x68 }, - { 0x18, 0x00 }, - { 0x19, 0x00 }, - { 0x1A, 0x80 }, - { 0x1B, 0xB2 }, - { 0x1C, 0x50 }, - { 0x1D, 0xE8 }, - - { 0x26, 0x68 }, - { 0x31, 0x33 }, - { 0x3A, 0xFF }, - { 0x44, 0x01 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_CreateVertexBuffer2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateVertexBuffer2, 5558, 7) - - { 0x08, 0xE8 }, - { 0x12, 0x1E }, - { 0x1C, 0x50 }, - { 0x26, 0x68 }, - { 0x31, 0x33 }, - { 0x3A, 0xFF }, - { 0x44, 0x01 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5233 version -// ****************************************************************** -// * D3DDevice_UpdateOverlay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_UpdateOverlay, 5558, 11) - - // D3DDevice_UpdateOverlay+0x13 : mov [eax+0xXXXX], ecx - { 0x13, 0x89 }, - { 0x14, 0x88 }, - { 0x17, 0x00 }, - { 0x18, 0x00 }, - - // D3DDevice_UpdateOverlay+0x85 : and eax, 0x0FFFFFFF - { 0x85, 0x25 }, - { 0x86, 0xFF }, - { 0x89, 0x0F }, - - // D3DDevice_UpdateOverlay+0x9D : mov [esi+0x8920], ecx - { 0x9D, 0x89 }, - { 0x9E, 0x8E }, - { 0x9F, 0x20 }, - { 0xA0, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetOverlayUpdateStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetOverlayUpdateStatus, 5558, 12) - - // D3DDevice_GetOverlayUpdateStatus+0x05 : mov ecx, [eax+0xXXXX] - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - - // D3DDevice_GetOverlayUpdateStatus+0x0C : mov esi, [eax+0xXXXX] - { 0x0C, 0x8B }, - { 0x0D, 0xB0 }, - { 0x10, 0x00 }, - { 0x11, 0x00 }, - - // D3DDevice_GetOverlayUpdateStatus+0x16 : setnz dl - { 0x16, 0x0F }, - { 0x17, 0x95 }, - { 0x18, 0xC2 }, - - // D3DDevice_GetOverlayUpdateStatus+0x1C : retn - { 0x1C, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_CreatePalette2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreatePalette2, 5455, 7) - - { 0x0D, 0x8B }, - { 0x16, 0x00 }, - { 0x23, 0x68 }, - { 0x2E, 0x85 }, - { 0x3D, 0x5E }, - { 0x46, 0x1E }, - { 0x52, 0x89 }, -OOVPA_END; -#endif - -#if 0 // Used 5028 -// ****************************************************************** -// * D3DDevice_CreateTexture2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateTexture2, 5558, 8) - - { 0x14, 0x4C }, - { 0x2A, 0x8B }, - { 0x42, 0x8B }, - { 0x56, 0x80 }, - { 0x70, 0x85 }, - { 0x82, 0x5E }, - { 0x98, 0x89 }, - { 0xAE, 0x1C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_End -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_End, 5558, 7) - - { 0x07, 0x8B }, - { 0x13, 0xC7 }, - { 0x19, 0xC7 }, - { 0x22, 0x08 }, - { 0x2B, 0xE1 }, - { 0x34, 0x4E }, - { 0x40, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5344 -// ****************************************************************** -// * D3DDevice_SetLight -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetLight, 5558, 15) - - // D3DDevice_SetLight+0x1f : add REG, 0x10 - { 0x1F, 0x83 }, - { 0x21, 0x10 }, - - // D3DDevice_SetLight+0x22 : and REG, 0xfffffff0 - { 0x22, 0x83 }, - { 0x24, 0xf0 }, - - // D3DDevice_SetLight+0x2c : push 0x24800000 - { 0x2C, 0x68 }, - { 0x2D, 0x00 }, - { 0x2E, 0x00 }, - { 0x2F, 0x80 }, - { 0x30, 0x24 }, - - // D3DDevice_SetLight+0x65 : jz +8 - { 0x65, 0x74 }, - { 0x66, 0x08 }, - - // D3DDevice_SetLight+0xe3 : jz +8 - { 0xE3, 0x74 }, - { 0xE4, 0x08 }, - - // D3DDevice_SetLight+0xfe : shr ???, 2 - { 0xFE, 0xC1 }, - { 0x100, 0x02 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetMaterial, 5455, 11) - - { 0x04, 0x08 }, - - { 0x0C, 0x81 }, - { 0x0D, 0xC7 }, - { 0x0E, 0xE0 }, - { 0x0F, 0x0A }, - { 0x10, 0x00 }, - - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetMaterial // ****************************************************************** @@ -435,47 +77,6 @@ OOVPA_NO_XREF(D3DDevice_SetMaterial, 5558, 11) { 0x2E, 0x04 }, OOVPA_END; -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_SetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetMaterial, 5659, 11) - - { 0x04, 0x08 }, - - { 0x0C, 0x81 }, - { 0x0D, 0xC7 }, - { 0x0E, 0x00 }, - { 0x0F, 0x0F }, - { 0x10, 0x00 }, - - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_GetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetMaterial, 5455, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - - { 0x0D, 0xE0 }, - { 0x0E, 0x0A }, - - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetMaterial // ****************************************************************** @@ -493,73 +94,6 @@ OOVPA_NO_XREF(D3DDevice_GetMaterial, 5558, 8) { 0x1A, 0xC2 }, OOVPA_END; -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_GetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetMaterial, 5659, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - - { 0x0D, 0x00 }, - { 0x0E, 0x0F }, - - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShader, 5455, 8) - - { 0x1E, 0x89 }, - { 0x3E, 0x5F }, - { 0x61, 0x3B }, - { 0x81, 0x00 }, - { 0x9E, 0x00 }, - { 0xBE, 0x8B }, - { 0xDE, 0x04 }, - { 0xFE, 0xC1 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPalette -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPalette, 5558, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PALETTES ), // Derived - - // D3DDevice_SetPalette+0x0D : mov eax, [edi+esi*4+0x0A88] - { 0x0D, 0x8B }, - { 0x0E, 0x84 }, - { 0x0F, 0xBE }, - { 0x10, 0x88 }, - { 0x11, 0x0F }, - - // D3DDevice_SetPalette+0x76 : add esi, 0x41B20 - { 0x76, 0x81 }, - { 0x77, 0xC7 }, - { 0x78, 0x20 }, - { 0x79, 0x1B }, - { 0x7A, 0x04 }, - - // D3DDevice_SetPalette+0x8A : retn 0x08 - { 0x8A, 0xC2 }, - { 0x8B, 0x08 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_BlockUntilVerticalBlank // ****************************************************************** @@ -585,47 +119,6 @@ OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5558, 11) { 0x23, 0xC3 }, OOVPA_END; -#if 0 // No longer used, replaced by another 5558 version -// ****************************************************************** -// * D3DDevice_BlockUntilVerticalBlank -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5558, 7) - - { 0x05, 0x6A }, - { 0x08, 0x00 }, - { 0x0D, 0xB0 }, - { 0x12, 0x00 }, - { 0x17, 0x05 }, - { 0x1C, 0x50 }, - { 0x23, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_DrawIndexedVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawIndexedVerticesUP, 5558, 10) - - // D3DDevice_DrawIndexedVerticesUP+0x4A : or edx, 0x800 - { 0x4A, 0x81 }, - { 0x4B, 0xCA }, - { 0x4C, 0x00 }, - { 0x4D, 0x08 }, - - // D3DDevice_DrawIndexedVerticesUP+0x5C : lea edx, [edi+0xBxx] - { 0x5C, 0x8D }, - { 0x5D, 0x96 }, - // { 0x5E, 0xC4 }, // The offset from EDI has been seen as BC4 (5558) and BD4 (5659) - { 0x5F, 0x0B }, - { 0x60, 0x00 }, - - // D3DDevice_DrawIndexedVerticesUP+0x6A : mov eax, 0x10 - { 0x6A, 0xB8 }, - { 0x6B, 0x10 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetTransform // ****************************************************************** @@ -647,78 +140,6 @@ OOVPA_NO_XREF(D3DDevice_SetTransform, 5558, 12) { 0x9D, 0x00 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetBackBuffer2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackBuffer2, 5558, 12) - - // D3DDevice_GetBackBuffer2+0x04 : cmp eax, 0xFFFFFFFF - { 0x04, 0x83 }, - { 0x05, 0xF8 }, - { 0x06, 0xFF }, - - // D3DDevice_GetBackBuffer2+0x0D : mov ecx, ds:dword_XXXXXX - { 0x07, 0x8B }, - { 0x08, 0x0D }, - - // D3DDevice_GetBackBuffer2+0x15 : mov esi, [ecx+eax*4+0xXXXX] - { 0x15, 0x8B }, - { 0x16, 0xB4 }, - { 0x17, 0x81 }, - { 0x1A, 0x00 }, - { 0x1B, 0x00 }, - - // D3DDevice_GetBackBuffer2+0x40 : retn 0x04 - { 0x40, 0xC2 }, - { 0x41, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_GetBackBuffer2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackBuffer2, 5455, 12) - - // D3DDevice_GetBackBuffer2+0x04 : cmp eax, 0xFFFFFFFF - { 0x04, 0x83 }, - { 0x05, 0xF8 }, - { 0x06, 0xFF }, - - // D3DDevice_GetBackBuffer2+0x0D : jnz +0x19 - { 0x0D, 0x75 }, - { 0x0E, 0x19 }, - - // D3DDevice_GetBackBuffer2+0x15 : mov esi, [ecx+eax*4+0x15F4] - { 0x15, 0x8B }, - { 0x16, 0xB4 }, - { 0x17, 0x81 }, - { 0x18, 0xF4 }, - { 0x19, 0x15 }, - - // D3DDevice_GetBackBuffer2+0x40 : retn 0x04 - { 0x40, 0xC2 }, - { 0x41, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 3911 -// ****************************************************************** -// * Direct3D_CheckDeviceMultiSampleType -// ****************************************************************** -OOVPA_NO_XREF(Direct3D_CheckDeviceMultiSampleType, 5558, 7) - - { 0x0E, 0x00 }, - { 0x1E, 0x54 }, - { 0x2E, 0xC9 }, - { 0x3E, 0x8B }, - { 0x4E, 0x08 }, - { 0x5E, 0x72 }, - { 0x6E, 0x03 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::SetFence // ****************************************************************** @@ -770,35 +191,6 @@ OOVPA_XREF(D3D_BlockOnTime, 5558, 12, { 0xE9, 0x57 },*/ OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3D::BlockOnResource -// ****************************************************************** -OOVPA_XREF(D3D_BlockOnResource, 5558, 16, - - XREF_D3D_BlockOnResource, - XRefZero) - - { 0x09, 0x8B }, // mov eax, [esp+arg_0] - { 0x0A, 0x44 }, - { 0x0B, 0x24 }, - { 0x0C, 0x04 }, - { 0x0F, 0x81 }, // and ecx, 0x00070000 - { 0x10, 0xE1 }, - { 0x11, 0x00 }, - { 0x12, 0x00 }, - { 0x13, 0x07 }, - { 0x14, 0x00 }, - { 0x46, 0x8B }, // mov esi, [eax+8] - { 0x47, 0x70 }, - { 0x48, 0x08 }, - { 0x75, 0xC2 }, // retn 4 - { 0x76, 0x04 }, - { 0x77, 0x00 }, - -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetScissors // ****************************************************************** @@ -838,76 +230,6 @@ OOVPA_NO_XREF(D3DDevice_AddRef, 5558, 10) { 0x0F, 0x09 }, OOVPA_END; -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_AddRef -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_AddRef, 5659, 10) - - // D3DDevice_AddRef+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_AddRef+0x05 : mov ecx, [eax+0x0938] - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x38 }, - { 0x08, 0x09 }, - - // D3DDevice_AddRef+0x0B : inc ecx - { 0x0B, 0x41 }, - - // D3DDevice_AddRef+0x0C : mov [eax+0x0938], ecx - { 0x0C, 0x89 }, - { 0x0D, 0x88 }, - { 0x0E, 0x38 }, - { 0x0F, 0x09 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_DrawVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVerticesUP, 5558, 9) - - // D3DDevice_DrawVerticesUP+0x03 : sub esp, 0x14 - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x14 }, - - // D3DDevice_DrawVerticesUP+0x40 : mov [edi], eax - { 0x40, 0x89 }, - { 0x41, 0x07 }, - - // D3DDevice_DrawVerticesUP+0x42 : or dword ptr [edi+8], 800h - { 0x42, 0x81 }, - - // D3DDevice_DrawVerticesUP+0xC4 : cmp esi, 0x80 - { 0xC4, 0x81 }, - { 0xC5, 0xFE }, - { 0xC6, 0x80 }, -OOVPA_END; -#endif - -#if 0 // Was _IDirect3DDevice8_CreateIndexBuffer@24, replaced by D3DDevice_CreateIndexBuffer 4627 version -// ****************************************************************** -// * D3DDevice_CreateIndexBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreateIndexBuffer, 5558, 10) - - { 0x00, 0x50 }, - { 0x06, 0x8B }, - { 0x07, 0x4C }, - { 0x09, 0x04 }, - { 0x0A, 0x33 }, - { 0x0E, 0x0F }, - { 0x12, 0x01 }, - { 0x16, 0x0E }, - { 0x1A, 0x8B }, - { 0x1E, 0x00 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetVerticalBlankCallback // ****************************************************************** @@ -922,63 +244,6 @@ OOVPA_NO_XREF(D3DDevice_SetVerticalBlankCallback, 5558, 7) { 0x10, 0xC2 }, OOVPA_END; -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetVerticalBlankCallback -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVerticalBlankCallback, 5455, 12) - - // D3DDevice_SetVerticalBlankCallback+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetVerticalBlankCallback+0x04 : mov ecx, [addr] - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - // D3DDevice_SetVerticalBlankCallback+0x0A : mov [ecx+0x1998], eax - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0C, 0x98 }, // 94 vs 98 - { 0x0D, 0x19 }, - - // D3DDevice_SetVerticalBlankCallback+0x10 : retn 0x04 - { 0x10, 0xC2 }, - { 0x11, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetSwapCallback -// ****************************************************************** -/* See the comment for the 4134 OOVPA signature for previous notes */ -OOVPA_NO_XREF(D3DDevice_SetSwapCallback, 5455, 12) - - // D3DDevice_SetSwapCallback+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetSwapCallback+0x04 : mov ecx, [addr] - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - // D3DDevice_SetSwapCallback+0x0A : mov [ecx+0x1994], eax - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0C, 0x94 }, // 94 vs 98 - { 0x0D, 0x19 }, - - // D3DDevice_SetSwapCallback+0x10 : retn 0x04 - { 0x10, 0xC2 }, - { 0x11, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetSwapCallback // ****************************************************************** @@ -993,72 +258,6 @@ OOVPA_NO_XREF(D3DDevice_SetSwapCallback, 5558, 7) { 0x10, 0xC2 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_TextureFactor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TextureFactor, 5558, 7) - - { 0x08, 0x86 }, - { 0x14, 0x46 }, - { 0x1F, 0x24 }, - { 0x2A, 0xBA }, - { 0x35, 0x4A }, - { 0x40, 0x5E }, - { 0x4D, 0x5E }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetViewport, 5455, 1+17, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x01, XREF_D3DDEVICE ), // Derived - - { 0x00, 0xA1 }, - - { 0x05, 0x8B }, - { 0x06, 0x4C }, - { 0x07, 0x24 }, - { 0x08, 0x04 }, - { 0x09, 0x05 }, - - { 0x0C, 0x00 }, - { 0x0D, 0x00 }, - { 0x0E, 0x8B }, - - { 0x2A, 0x8B }, - { 0x2B, 0x40 }, - { 0x2C, 0x14 }, - { 0x2D, 0x89 }, - { 0x2E, 0x41 }, - { 0x2F, 0x14 }, - { 0x30, 0xC2 }, - { 0x31, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 5558, 7) - - { 0x05, 0x8B }, - { 0x0C, 0x00 }, - { 0x13, 0x50 }, - { 0x1A, 0x08 }, - { 0x21, 0x89 }, - { 0x28, 0x51 }, - { 0x2F, 0x14 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_Reset // ****************************************************************** @@ -1093,28 +292,6 @@ OOVPA_NO_XREF(D3DDevice_SetGammaRamp, 5558, 7) { 0x75, 0x07 }, OOVPA_END; -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackMaterial, 5455, 11) - - { 0x04, 0x08 }, - - { 0x0C, 0x81 }, - { 0x0D, 0xC7 }, - { 0x0E, 0x24 }, - { 0x0F, 0x0B }, - { 0x10, 0x00 }, - - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetBackMaterial // ****************************************************************** @@ -1135,47 +312,6 @@ OOVPA_NO_XREF(D3DDevice_SetBackMaterial, 5558, 11) { 0x2E, 0x04 }, OOVPA_END; -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_SetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackMaterial, 5659, 11) - - { 0x04, 0x08 }, - - { 0x0C, 0x81 }, - { 0x0D, 0xC7 }, - { 0x0E, 0x44 }, - { 0x0F, 0x0F }, - { 0x10, 0x00 }, - - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_GetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackMaterial, 5455, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - - { 0x0D, 0x24 }, - { 0x0E, 0x0B }, - - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetBackMaterial // ****************************************************************** @@ -1193,66 +329,6 @@ OOVPA_NO_XREF(D3DDevice_GetBackMaterial, 5558, 8) { 0x1A, 0xC2 }, OOVPA_END; -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_GetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackMaterial, 5659, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - - { 0x0D, 0x44 }, - { 0x0E, 0x0F }, - - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_SetRenderState_TwoSidedLighting -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TwoSidedLighting, 5558, 8) - - { 0x0E, 0x05 }, - { 0x1E, 0x89 }, - { 0x30, 0x00 }, - { 0x40, 0x89 }, - { 0x52, 0x8B }, - { 0x60, 0x75 }, - { 0x6E, 0x48 }, - { 0x7E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 5558, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x52 : mov edx, [eax+0xXXXX] - { 0x52, 0x8B }, - { 0x53, 0x90 }, - { 0x56, 0x00 }, - { 0x57, 0x00 }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::MakeRequestedSpace // ****************************************************************** @@ -1292,313 +368,6 @@ OOVPA_XREF(D3D_MakeRequestedSpace, 5558, 26, // Also for 5659 { 0x1F, 0x00 }, OOVPA_END; -#if 0 // Moved to 4134 -// ****************************************************************** -// * D3DDevice_MakeSpace -// ****************************************************************** -// TODO: This may or may not need to save/use an XRef to work... -OOVPA_NO_XREF(D3DDevice_MakeSpace, 5558, 7) - - { 0x00, 0xA1 }, - { 0x05, 0x50 }, - { 0x06, 0xD1 }, - { 0x07, 0xE8 }, - { 0x08, 0x50 }, - { 0x09, 0xE8 }, - { 0x0E, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetRenderTarget@8 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderTarget, 5558, 8) - - { 0x1E, 0x44 }, - { 0x3E, 0x2C }, - { 0x5E, 0x8B }, - { 0x7E, 0xDE }, - { 0xA0, 0x89 }, - { 0xBE, 0x09 }, - { 0xDE, 0x8B }, - { 0xFE, 0x8B }, -OOVPA_END; -#endif - -#if 0 // Used 3925 -// ****************************************************************** -// * D3DTexture_LockRect -// ****************************************************************** -OOVPA_NO_XREF(D3DTexture_LockRect, 5558, 8) - - { 0x03, 0x14 }, - { 0x08, 0x8B }, - { 0x0D, 0x8B }, - { 0x12, 0x8B }, - { 0x17, 0x50 }, - { 0x1B, 0xE8 }, - { 0x20, 0xC2 }, - { 0x21, 0x14 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4831 version -// ****************************************************************** -// * D3DDevice_SetPixelShaderConstant -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderConstant, 5558, 7) - - { 0x1E, 0x85 }, - { 0x3E, 0x8B }, - { 0x5E, 0xC0 }, - { 0x7E, 0x0F }, - { 0x9F, 0x8B }, - { 0xBE, 0x00 }, - { 0xDE, 0xC0 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetFlickerFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetFlickerFilter, 5455, 12) - - // D3DDevice_SetFlickerFilter+0x1A : jz, 0x22 - { 0x1A, 0x74 }, - { 0x1B, 0x22 }, - - // D3DDevice_SetFlickerFilter+0x1C : mov eax, [eax+0xXXXX] - { 0x1C, 0x8B }, - { 0x1D, 0x80 }, - - // D3DDevice_SetFlickerFilter+0x22 : push 0; push esi; push 0x0B; push eax - { 0x22, 0x6A }, - { 0x23, 0x00 }, - { 0x24, 0x56 }, - { 0x25, 0x6A }, - { 0x26, 0x0B }, - { 0x27, 0x50 }, - - // D3DDevice_SetFlickerFilter+0x3F : retn 0x04 - { 0x3F, 0xC2 }, - { 0x40, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_BlockUntilVerticalBlank -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5455, 11) - - // D3DDevice_BlockUntilVerticalBlank+0x05 : push 0; push 0; push 1 - { 0x05, 0x6A }, - { 0x06, 0x00 }, - { 0x07, 0x6A }, - { 0x08, 0x00 }, - { 0x09, 0x6A }, - { 0x0A, 0x01 }, - - // D3DDevice_BlockUntilVerticalBlank+0x17 : add eax, 0x199C - { 0x17, 0x05 }, - { 0x18, 0x9C }, - { 0x19, 0x19 }, - - // D3DDevice_BlockUntilVerticalBlank+0x1D : call [KrnlImport] - { 0x1D, 0xFF }, - - // D3DDevice_BlockUntilVerticalBlank+0x23 : retn - { 0x23, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetScreenSpaceOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScreenSpaceOffset, 5455, 17) - - { 0x00, 0xD9 }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x56 }, - { 0x05, 0xD8 }, - { 0x06, 0x05 }, - - { 0x17, 0x00 }, - { 0x18, 0x00 }, - { 0x19, 0xD9 }, - { 0x1A, 0x44 }, - { 0x1B, 0x24 }, - { 0x1C, 0x0C }, - { 0x1D, 0xD8 }, - { 0x1E, 0x05 }, - - { 0x23, 0xD9 }, - { 0x29, 0xE8 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_SetScreenSpaceOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScreenSpaceOffset, 5455, 8) - - // D3DDevice_SetScreenSpaceOffset+0x13 : fstp [esi+0x0AD8] - { 0x13, 0xD9 }, - { 0x14, 0x9E }, - { 0x15, 0xD8 }, - { 0x16, 0x0A }, - - // D3DDevice_SetScreenSpaceOffset+0x33 : jb +0x05 - { 0x33, 0x72 }, - { 0x34, 0x05 }, - - // D3DDevice_SetScreenSpaceOffset+0x46 : retn 0x08 - { 0x46, 0xC2 }, - { 0x47, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_SetScreenSpaceOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScreenSpaceOffset, 5558, 8) - - // D3DDevice_SetScreenSpaceOffset+0x04 : push esi - { 0x04, 0x56 }, - - // D3DDevice_SetScreenSpaceOffset+0x13 : fstp [esi+0x0EE8] - { 0x13, 0xD9 }, - { 0x14, 0x9E }, - { 0x16, 0x0E }, - - // D3DDevice_SetScreenSpaceOffset+0x33 : jb +0x05 - { 0x33, 0x72 }, - { 0x34, 0x05 }, - - // D3DDevice_SetScreenSpaceOffset+0x46 : retn 0x08 - { 0x46, 0xC2 }, - { 0x47, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_LineWidth -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LineWidth, 5455, 10) - - // D3DDevice_SetRenderState_LineWidth+0x15 : fmul dword ptr [esi+0x54C] - { 0x15, 0xD8 }, - { 0x16, 0x8E }, - { 0x17, 0x4C }, - { 0x18, 0x05 }, - - // D3DDevice_SetRenderState_LineWidth+0x32 : cmp edi, 0x1FF - { 0x32, 0x81 }, - { 0x33, 0xFF }, - - // D3DDevice_SetRenderState_LineWidth+0x3A : mov edi, 0x1FF - { 0x3A, 0xBF }, - { 0x3B, 0xFF }, - - // D3DDevice_SetRenderState_LineWidth+0x62 : retn 0x04 - { 0x62, 0xC2 }, - { 0x63, 0x04 }, -OOVPA_END; -#endif - -#if 0 // unused -// ****************************************************************** -// * D3DDevice_LightEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LightEnable, 5455, 13) - - // D3DDevice_LightEnable+0x0F : cmp ebx, [esi+0x0390] - { 0x0F, 0x3B }, - { 0x10, 0x9E }, - { 0x11, 0x90 }, - { 0x12, 0x03 }, - - // D3DDevice_LightEnable+0x6B : test eax, eax - { 0x6B, 0x85 }, - { 0x6C, 0xC0 }, - - // D3DDevice_LightEnable+0x9A : cmp ecx, 0xFFFFFFFF - { 0x9A, 0x83 }, - { 0x9B, 0xF9 }, - { 0x9C, 0xFF }, - - // D3DDevice_LightEnable+0xB9 : jnz +0xF7 - { 0xB9, 0x75 }, - { 0xBA, 0xF7 }, - - // D3DDevice_LightEnable+0xFB : retn 0x08 - { 0xFB, 0xC2 }, - { 0xFC, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetIndices -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetIndices, 5558, 7) - - { 0x0F, 0x10 }, - { 0x20, 0xC7 }, - { 0x31, 0xC0 }, - { 0x42, 0x78 }, - { 0x53, 0xBE }, - { 0x64, 0x89 }, - { 0x75, 0x10 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetBackBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackBuffer, 5558, 6) - - { 0x01, 0x44 }, - { 0x04, 0x50 }, - { 0x0A, 0x8B }, - { 0x0B, 0x4C }, - { 0x0D, 0x0C }, - { 0x10, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_PersistDisplay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PersistDisplay, 5455, 12) - - { 0x00, 0x83 }, - { 0x1F, 0x6A }, - - { 0x2C, 0x00 }, - { 0x2D, 0x85 }, - { 0x2E, 0xC0 }, - { 0x2F, 0x75 }, - { 0x30, 0x0A }, - { 0x31, 0xB8 }, - { 0x32, 0x05 }, - { 0x33, 0x40 }, - - { 0x4D, 0x85 }, - { 0x6F, 0xE1 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_PersistDisplay // ****************************************************************** @@ -1620,236 +389,6 @@ OOVPA_NO_XREF(D3DDevice_PersistDisplay, 5558, 12) { 0x6B, 0xE1 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5558 version -// ****************************************************************** -// * D3DDevice_PersistDisplay -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_PersistDisplay, 5558, 7) - - { 0x1E, 0x15 }, - { 0x3E, 0x89 }, - { 0x5E, 0x89 }, - { 0x7E, 0x42 }, - { 0x9E, 0x50 }, - { 0xBE, 0x00 }, - { 0xDE, 0x8B }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DCubeTexture_GetCubeMapSurface -// ****************************************************************** -OOVPA_NO_XREF(D3DCubeTexture_GetCubeMapSurface, 5558, 7) - - { 0x04, 0x8B }, - { 0x0A, 0x24 }, - { 0x14, 0x8B }, - { 0x16, 0x24 }, - { 0x1C, 0x0F }, - { 0x22, 0x81 }, - { 0x28, 0x8B }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetVertexData4f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData4f, 5558, 7) - - { 0x0A, 0x46 }, - { 0x16, 0x08 }, - { 0x22, 0x09 }, - { 0x2E, 0x24 }, - { 0x3A, 0x24 }, - { 0x46, 0x8B }, - { 0x52, 0x14 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetVertexData2f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData2f, 5558, 8) - - { 0x07, 0x8B }, - { 0x0C, 0x72 }, - { 0x13, 0x8B }, - { 0x1A, 0x80 }, - { 0x21, 0x0C }, - { 0x28, 0x89 }, - { 0x2F, 0xC0 }, - { 0x36, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_LoadVertexShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_LoadVertexShaderProgram, 5558, 7) - - { 0x0B, 0x2D }, - { 0x18, 0x10 }, - { 0x25, 0xE0 }, - { 0x32, 0x5F }, - { 0x3F, 0x24 }, - { 0x4C, 0x83 }, - { 0x5C, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_SetPixelShaderProgram -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetPixelShaderProgram, 5558, 7) - - { 0x06, 0xA1 }, - { 0x0E, 0x88 }, - { 0x16, 0x00 }, - { 0x1E, 0x00 }, - { 0x26, 0x09 }, - { 0x32, 0xC7 }, - { 0x36, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5233 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMode, 5558, 9) - - { 0x03, 0x04 }, - { 0x0A, 0xA3 }, - { 0x0F, 0x8B }, - { 0x12, 0x19 }, - { 0x17, 0x04 }, - { 0x1B, 0x75 }, - { 0x1C, 0x07 }, - { 0x24, 0xC2 }, - { 0x26, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMode, 5455, 9) - - { 0x03, 0x04 }, - { 0x0A, 0xA3 }, - { 0x0F, 0x8B }, - { 0x12, 0x15 }, - { 0x17, 0xF4 }, - { 0x1B, 0x75 }, - { 0x1C, 0x07 }, - { 0x24, 0xC2 }, - { 0x26, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleRenderTargetMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 5455, 9) - - { 0x03, 0x04 }, - { 0x0A, 0xA3 }, - { 0x0F, 0x8B }, - { 0x12, 0x15 }, - { 0x17, 0xF4 }, - { 0x1B, 0x74 }, - { 0x1C, 0x07 }, - { 0x24, 0xC2 }, - { 0x26, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleRenderTargetMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 5558, 9) - - { 0x03, 0x04 }, - { 0x0A, 0xA3 }, - { 0x0F, 0x8B }, - { 0x12, 0x19 }, - { 0x17, 0x04 }, - { 0x1B, 0x74 }, - { 0x1C, 0x07 }, - { 0x24, 0xC2 }, - { 0x26, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetRenderState_Dxt1NoiseEnable -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_Dxt1NoiseEnable, 5558, 8) - - { 0x0D, 0x8B }, - { 0x1D, 0x80 }, - { 0x2B, 0x08 }, - { 0x3A, 0x01 }, - { 0x49, 0xC7 }, - { 0x58, 0x05 }, - { 0x67, 0xC0 }, - { 0x76, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5028 version -// ****************************************************************** -// * D3DDevice_IsFencePending -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_IsFencePending, 5558, 7) - - { 0x05, 0x8B }, - { 0x06, 0x48 }, - { 0x0A, 0x2C }, - { 0x0E, 0xD0 }, - { 0x12, 0x44 }, - { 0x16, 0xC2 }, - { 0x1A, 0xD8 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetSoftDisplayFilter -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSoftDisplayFilter, 5558, 12) - - // D3DDevice_SetSoftDisplayFilter+0x23 : jz, 0x28 - { 0x23, 0x74 }, - { 0x24, 0x28 }, - - // D3DDevice_SetSoftDisplayFilter+0x25 : mov edx, [eax+0xXXXX] - { 0x25, 0x8B }, - { 0x26, 0x90 }, - - // D3DDevice_SetSoftDisplayFilter+0x2B : push 0; push esi; push 0x0E; push edx - { 0x2B, 0x6A }, - { 0x2C, 0x00 }, - { 0x2D, 0x56 }, - { 0x2E, 0x6A }, - { 0x2F, 0x0E }, - { 0x30, 0x52 }, - - // D3DDevice_SetSoftDisplayFilter+0x4E : retn 0x04 - { 0x4E, 0xC2 }, - { 0x4F, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetViewportOffsetAndScale // ****************************************************************** @@ -1865,106 +404,6 @@ OOVPA_NO_XREF(D3DDevice_GetViewportOffsetAndScale, 5558, 8) { 0xFE, 0xC1 }, OOVPA_END; -#if 0 // Moved to 5455, rename to D3D_SetTileNoWait -// ****************************************************************** -// * D3DDevice_SetTile -// ****************************************************************** -// Accurately this one ?SetTileNoWait@D3D@@YGXKPBU_D3DTILE@@@Z -OOVPA_NO_XREF(D3DDevice_SetTile, 5455, 16) - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x1C }, - { 0x03, 0x8B }, - { 0x04, 0x44 }, - { 0x05, 0x24 }, - { 0x06, 0x24 }, - { 0x07, 0x85 }, - { 0x08, 0xC0 }, - { 0x09, 0x53 }, - { 0x0A, 0x8B }, - { 0x0B, 0x1D }, - - { 0x45, 0x8D }, - { 0x46, 0x9C }, - - { 0x88, 0x5F }, - { 0x9B, 0xCB }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_SetTile -// ****************************************************************** -// Accurately this one ?SetTileNoWait@D3D@@YGXKPBU_D3DTILE@@@Z -OOVPA_NO_XREF(D3DDevice_SetTile, 5558, 10) - - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x1C }, - { 0x18, 0x48 }, - { 0x1F, 0x70 }, - { 0x97, 0x0C }, - { 0x98, 0x40 }, - { 0x99, 0x8B }, - { 0x9A, 0x94 }, - { 0x9B, 0xCB }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_CaptureStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CaptureStateBlock, 5455, 8) - - { 0x1E, 0x3C }, - { 0x3E, 0xC0 }, - { 0x5E, 0x7E }, - { 0x7E, 0x00 }, - { 0x9E, 0x74 }, - { 0xC0, 0x8B }, - { 0xDE, 0x83 }, - { 0xFE, 0x45 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * CMiniport::InitHardware -// ****************************************************************** -OOVPA_NO_XREF(CMiniport_InitHardware, 5455, 24) // Also for 5558, 5659, 5788, 5849, 5933 - - { 0x00, 0x55 }, - { 0x01, 0x8B }, - { 0x02, 0xEC }, - { 0x03, 0x83 }, - { 0x04, 0xEC }, - { 0x05, 0x10 }, - { 0x06, 0x53 }, - { 0x07, 0x56 }, - { 0x08, 0x8B }, - { 0x09, 0xF1 }, - { 0x0A, 0x56 }, - { 0x0B, 0x68 }, - - { 0x10, 0x8D }, - { 0x11, 0x86 }, - { 0x12, 0x84 }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x00 }, - { 0x16, 0x50 }, - { 0x17, 0xFF }, - { 0x18, 0x15 }, - - { 0x1D, 0x8D }, - { 0x1E, 0x86 }, - { 0x1F, 0xAC }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetProjectionViewportMatrix // ****************************************************************** @@ -1987,81 +426,6 @@ OOVPA_NO_XREF(D3DDevice_GetProjectionViewportMatrix, 5558, 15) { 0x1B, 0xC2 }, OOVPA_END; -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 5455, 12) - - { 0x00, 0x8B }, - { 0x01, 0x0D }, - - { 0x13, 0x00 }, - { 0x14, 0x8B }, - { 0x15, 0x0A }, - { 0x16, 0x8B }, - { 0x17, 0x44 }, - { 0x18, 0x24 }, - { 0x19, 0x08 }, - { 0x1A, 0x89 }, - - { 0x3A, 0xC2 }, - { 0x3B, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 5558, 7) - - { 0x06, 0x8B }, - { 0x0E, 0x94 }, - { 0x16, 0x8B }, - { 0x1E, 0x04 }, - { 0x26, 0x48 }, - { 0x2E, 0x8B }, - { 0x36, 0x14 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3D::CDevice::KickOff -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_KickOff, 5455, 15) - - { 0x06, 0xA8 }, - { 0x07, 0x04 }, - { 0x08, 0x74 }, - { 0x09, 0x08 }, - - // D3D::CDevice::KickOff+0x0A : mov edx, [ecx+0x35C] - { 0x0A, 0x8B }, - { 0x0B, 0x96 }, -// { 0x0C, 0x6C }, -// { 0x0D, 0x07 }, - { 0x0E, 0x00 }, - { 0x0F, 0x00 }, - - // D3D::CDevice::KickOff+0x14 : test ch, 0x20 - { 0x14, 0xF6 }, - { 0x15, 0xC4 }, - { 0x16, 0x20 }, - - // D3D::CDevice::KickOff+0x24 : sfence - { 0x24, 0x0F }, - { 0x25, 0xAE }, - { 0x26, 0xF8 }, - - { 0x62, 0x74 } - - // D3D::CDevice::KickOff+0xAF : retn -// { 0xAF, 0xC3 } -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_RunPushBuffer // ****************************************************************** @@ -2099,32 +463,6 @@ OOVPA_NO_XREF(D3DDevice_GetShaderConstantMode, 5558, 16) { 0x13, 0x00 }, OOVPA_END; -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3DDevice_GetVertexShaderDeclaration -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderDeclaration, 5455, 14) - - { 0x00, 0x8B }, - - { 0x05, 0x48 }, - { 0x06, 0x03 }, - { 0x07, 0x83 }, - { 0x08, 0xEC }, - { 0x09, 0x14 }, - { 0x0A, 0xF6 }, - { 0x0B, 0xC1 }, - { 0x0C, 0x08 }, - - { 0x1E, 0xC2 }, - { 0x1F, 0x0C }, - - { 0x53, 0xC1 }, - { 0x54, 0x07 }, - { 0x55, 0x01 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetPixelShader // ****************************************************************** @@ -2149,67 +487,6 @@ OOVPA_NO_XREF(D3DDevice_GetPixelShader, 5558, 16) { 0x13, 0x00 }, OOVPA_END; -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_SetVerticalBlankCallback -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetVerticalBlankCallback, 5659, 1+12, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x06, XREF_D3DDEVICE ), // Derived - - // D3DDevice_SetVerticalBlankCallback+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetVerticalBlankCallback+0x04 : mov ecx, [addr] - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - // D3DDevice_SetVerticalBlankCallback+0x0A : mov [ecx+0x1DB4], eax - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0C, 0xB8 }, // B4 vs B8 - { 0x0D, 0x1D }, - - // D3DDevice_SetVerticalBlankCallback+0x10 : retn 0x04 - { 0x10, 0xC2 }, - { 0x11, 0x04 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_SetSwapCallback -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSwapCallback, 5659, 12) - - // D3DDevice_SetSwapCallback+0x00 : mov eax, [esp+0x04] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - - // D3DDevice_SetSwapCallback+0x04 : mov ecx, [addr] - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - // D3DDevice_SetSwapCallback+0x0A : mov [ecx+0x1DB4], eax - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0C, 0xB4 }, // B4 vs B8 - { 0x0D, 0x1D }, - - // D3DDevice_SetSwapCallback+0x10 : retn 0x04 - { 0x10, 0xC2 }, - { 0x11, 0x04 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_GetVertexShader // ****************************************************************** diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5788.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5788.inl index 5f48e45ea..5d091e37e 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5788.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5788.inl @@ -32,804 +32,6 @@ // * // ****************************************************************** -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_EndVisibilityTest -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndVisibilityTest, 5788, 7) - - { 0x10, 0x09 }, - { 0x12, 0x0E }, - { 0x18, 0x04 }, - { 0x34, 0xCC }, - { 0x3D, 0x0E }, - { 0x50, 0x0C }, - { 0x58, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_GetViewport -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetViewport, 5788, 8) - - { 0x09, 0x05 }, - { 0x14, 0x04 }, - { 0x1D, 0x08 }, - { 0x20, 0x0C }, - { 0x26, 0x10 }, - { 0x2B, 0x40 }, - { 0x2F, 0x14 }, - { 0x31, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4039 version -// ****************************************************************** -// * D3DDevice_SetBackBufferScale -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackBufferScale, 5788, 7) - - { 0x1E, 0x24 }, - { 0x3E, 0x06 }, - { 0x62, 0xD9 }, - { 0x7E, 0xC4 }, - { 0x9E, 0x81 }, - { 0xBE, 0xFF }, - { 0xDE, 0xC0 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetBackBuffer2 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackBuffer2, 5788, 12) - - // D3DDevice_GetBackBuffer2+0x04 : cmp eax, 0xFFFFFFFF - { 0x04, 0x83 }, - { 0x05, 0xF8 }, - { 0x06, 0xFF }, - - // D3DDevice_GetBackBuffer2+0x0D : jnz +0x19 - { 0x0D, 0x75 }, - { 0x0E, 0x19 }, - - // D3DDevice_GetBackBuffer2+0x18 : mov esi, [ecx+eax*4+0x21C0] - { 0x15, 0x8B }, - { 0x16, 0xB4 }, - { 0x17, 0x81 }, - { 0x18, 0x14 }, - { 0x19, 0x1A }, - - // D3DDevice_GetBackBuffer2+0x40 : retn 0x04 - { 0x40, 0xC2 }, - { 0x41, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetDepthStencilSurface2 -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetDepthStencilSurface2, 5788, 1+10, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x08, XREF_OFFSET_D3DDEVICE_M_DEPTHSTENCIL ), // Derived - - // D3DDevice_GetDepthStencilSurface2+0x00 : mov eax, [addr] - { 0x00, 0xA1 }, - - // D3DDevice_GetDepthStencilSurface2+0x05 : push esi - { 0x05, 0x56 }, - - // D3DDevice_GetDepthStencilSurface2+0x06 : mov esi, [eax + 0x1A08] - { 0x06, 0x8B }, - { 0x07, 0xB0 }, - { 0x08, 0x08 }, - { 0x09, 0x1A }, - - // D3DDevice_GetDepthStencilSurface2+0x0E : jnz +0x04 - { 0x0E, 0x75 }, - { 0x0F, 0x04 }, - - // D3DDevice_GetDepthStencilSurface2+0x15 : call [addr] - { 0x15, 0xE8 }, - - // D3DDevice_GetDepthStencilSurface2+0x1D : retn - { 0x1D, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_CreatePixelShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_CreatePixelShader, 5788, 9) - - { 0x00, 0x68 }, - { 0x07, 0x00 }, - { 0x10, 0xC0 }, - { 0x19, 0x08 }, - { 0x22, 0x78 }, - { 0x2B, 0x00 }, - { 0x34, 0xB9 }, - { 0x3D, 0x24 }, - { 0x46, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetRenderState_TextureFactor -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_TextureFactor, 5788, 7) - - { 0x09, 0x84 }, - { 0x14, 0x46 }, - { 0x1F, 0x24 }, - { 0x2A, 0xBA }, - { 0x35, 0x4A }, - { 0x40, 0x5E }, - { 0x4D, 0x5E }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_DrawIndexedVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawIndexedVerticesUP, 5788, 8) - - { 0x1F, 0x05 }, - { 0x3A, 0x89 }, - { 0x64, 0xF0 }, - { 0x73, 0x13 }, - { 0x94, 0xAF }, - { 0xAB, 0x12 }, - { 0xE4, 0xDB }, - { 0xFF, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5659 version -// ****************************************************************** -// * D3DDevice_SetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetMaterial, 5788, 9) - - { 0x04, 0x08 }, - { 0x0C, 0x81 }, - { 0x0E, 0x00 }, - { 0x10, 0x00 }, - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5659 version -// ****************************************************************** -// * D3DDevice_GetMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetMaterial, 5788, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - { 0x0D, 0x00 }, - { 0x0E, 0x0F }, - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5028 -// ****************************************************************** -// * D3DDevice_BeginStateBig -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginStateBig, 5788, 15) - - { 0x01, 0x0D }, - { 0x07, 0x01 }, - { 0x10, 0x8D }, - { 0x16, 0x02 }, - { 0x17, 0x00 }, - { 0x18, 0x00 }, - { 0x19, 0x3B }, - { 0x1A, 0xD1 }, - { 0x1B, 0x72 }, - { 0x1C, 0x23 }, - { 0x1D, 0xA1 }, - { 0x22, 0x8B }, - { 0x2B, 0x00 }, - { 0x34, 0xCA }, - { 0x40, 0x5E }, -OOVPA_END; -#endif - -#if 0 // This one _IDirect3DVertexBuffer8_Lock@20, replaced by generic 4627 version -// ****************************************************************** -// * D3DVertexBuffer8_Lock -// ****************************************************************** -OOVPA_NO_XREF(D3DVertexBuffer_Lock, 5788, 8) - - { 0x01, 0x51 }, - { 0x07, 0x8B }, - { 0x08, 0x4C }, - { 0x0A, 0x04 }, - { 0x0D, 0x24 }, - { 0x10, 0xC1 }, - { 0x13, 0x33 }, - { 0x16, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DVertexBuffer_Lock2 -// ****************************************************************** -OOVPA_NO_XREF(D3DVertexBuffer_Lock2, 5788, 7) - - { 0x08, 0x56 }, - { 0x12, 0x06 }, - { 0x1D, 0xC7 }, - { 0x26, 0x00 }, - { 0x30, 0xC3 }, - { 0x3E, 0x8B }, - { 0x44, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5455 -// ****************************************************************** -// * D3D_AllocContiguousMemory -// ****************************************************************** -OOVPA_NO_XREF(D3D_AllocContiguousMemory, 5788, 7) - - { 0x05, 0x10 }, - { 0x0C, 0x00 }, - { 0x13, 0x00 }, - { 0x1A, 0x08 }, - { 0x21, 0xBC }, - { 0x28, 0x0D }, - { 0x2F, 0x24 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DTexture8_GetLevelDesc -// ****************************************************************** -// * NOTE: We are actually intercepting Get2DSurfaceDesc, because -// * GetLevelDesc Simply redirects to that function -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 5788, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x52 : mov edx, [eax+0x1A14] - { 0x52, 0x8B }, - { 0x53, 0x90 }, - { 0x54, 0x14 }, - { 0x55, 0x1A }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - -#if 0 // Used 5028 -// ****************************************************************** -// * D3DDevice_CreateTexture2 -// ****************************************************************** -OOVPA_XREF(D3DDevice_CreateTexture2, 5788, 8, - - XRefNoSaveIndex, // ?? XREF_D3DDevice_CreateTexture2, - XRefZero) - - { 0x14, 0x4C }, - { 0x2A, 0x8B }, - { 0x42, 0x8B }, - { 0x56, 0x80 }, - { 0x70, 0x85 }, - { 0x82, 0x5E }, - { 0x98, 0x89 }, - { 0xAE, 0x1C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetVertexShaderConstant1 -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexShaderConstant1, 5788, 11) - - // D3DDevice_SetVertexShaderConstant1+0x05 : add eax, 0x1C - { 0x06, 0x83 }, - { 0x07, 0xC0 }, - { 0x08, 0x1C }, - - // D3DDevice_SetVertexShaderConstant1+0x0E : jnb +0x43 - { 0x0F, 0x73 }, - { 0x10, 0x43 }, - - // D3DDevice_SetVertexShaderConstant1+0x28 : mov [eax-0x18], ecx - { 0x1D, 0x89 }, - { 0x1E, 0x48 }, - { 0x1F, 0xE8 }, - - // D3DDevice_SetVertexShaderConstant1+0x3D : retn - { 0x53, 0xC3 }, - - // D3DDevice_SetVertexShaderConstant1+0x47 : jmp +0xA2 - { 0x5D, 0xEB }, - { 0x5E, 0xA2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetVertexData2f -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetVertexData2f, 5788, 8) - - { 0x0D, 0x05 }, - { 0x17, 0x8D }, - { 0x19, 0xCD }, - { 0x1F, 0x4C }, - { 0x25, 0x54 }, - { 0x27, 0x10 }, - { 0x30, 0x0C }, - { 0x35, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_DrawVerticesUP -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DrawVerticesUP, 5788, 8) - - { 0x1E, 0x72 }, - { 0x3E, 0xC0 }, - { 0x5E, 0xC6 }, - { 0x7E, 0x14 }, - { 0x9E, 0x00 }, - { 0xBE, 0x81 }, - { 0xDE, 0x8B }, - { 0xFE, 0x7D }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_BeginPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BeginPushBuffer, 5788, 6) - - { 0x09, 0x00 }, - { 0x11, 0x8B }, - { 0x2F, 0x08 }, - { 0x43, 0x57 }, - { 0x58, 0xC8 }, - { 0x63, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_EndPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_EndPushBuffer, 5788, 6) - - { 0x09, 0x00 }, - { 0x15, 0x50 }, - { 0x47, 0x7B }, - { 0x61, 0x78 }, - { 0x77, 0x07 }, - { 0x8C, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5558 -// ****************************************************************** -// * D3DDevice_RunPushBuffer -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_RunPushBuffer, 5788, 6) - - { 0x0E, 0xED }, - { 0x42, 0x18 }, - { 0x62, 0x04 }, - { 0x8D, 0x1C }, - { 0xAF, 0x0F }, - { 0xF6, 0x41 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5659 version -// ****************************************************************** -// * D3DDevice_SetVerticalBlankCallback -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetVerticalBlankCallback, 5788, 1+6, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x06, XREF_D3DDEVICE ), // Derived - - { 0x01, 0x44 }, - { 0x03, 0x04 }, - { 0x05, 0x0D }, - { 0x0C, 0xB8 }, - { 0x0D, 0x1D }, - { 0x11, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5659 version -// ****************************************************************** -// * D3DDevice_BlockUntilVerticalBlank -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_BlockUntilVerticalBlank, 5788, 7) - - { 0x05, 0x6A }, - { 0x08, 0x00 }, - { 0x0D, 0xC0 }, - { 0x12, 0x00 }, - { 0x17, 0x05 }, - { 0x1C, 0x50 }, - { 0x23, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5659 version -// ****************************************************************** -// * D3DDevice_SetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetBackMaterial, 5788, 10) - - { 0x04, 0x08 }, - { 0x0C, 0x81 }, - { 0x0E, 0x44 }, - { 0x0F, 0x0F }, - { 0x10, 0x00 }, - { 0x16, 0x00 }, - { 0x1F, 0x81 }, - { 0x22, 0x90 }, - { 0x2C, 0x5E }, - { 0x2E, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * IDirectD3DDevice8_Release -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_Release, 5788, 8) - - { 0x07, 0x8B }, - { 0x0C, 0x00 }, - { 0x13, 0xCF }, - { 0x1A, 0x28 }, - { 0x21, 0x05 }, - { 0x28, 0x00 }, - { 0x2F, 0x89 }, - { 0x36, 0xC3 }, -OOVPA_END; -#endif - -// ****************************************************************** -// * D3D::KickOffAndWaitForIdle -// ****************************************************************** -/*OOVPA_XREF(D3D_KickOffAndWaitForIdle, 5788, 5, - - XREF_D3D_KickOffAndWaitForIdle, - XRefZero) - - { 0x05, 0x8B }, - { 0x06, 0x48 }, - { 0x07, 0x2C }, - { 0x0A, 0x51 }, - { 0x10, 0xC3 }, -OOVPA_END; -*/ - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_SetTile -// ****************************************************************** -// Accurately this one ?SetTileNoWait@D3D@@YGXKPBU_D3DTILE@@@Z -OOVPA_NO_XREF(D3DDevice_SetTile, 5788, 10) - - // D3DDevice_SetTile+0x00: sub esp, 0x1C - { 0x00, 0x83 }, - { 0x01, 0xEC }, - { 0x02, 0x1C }, - // D3DDevice_SetTile+0x45: lea ebx, [ebx+ebp*8+0x1AC0] - { 0x45, 0x8D }, - { 0x46, 0x9C }, - { 0x47, 0xEB }, - { 0x48, 0xC0 }, - { 0x49, 0x1A }, - { 0x4A, 0x00 }, - { 0x4B, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5659 version -// ****************************************************************** -// * D3DDevice_SetSwapCallback -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetSwapCallback, 5788, 7) - - { 0x01, 0x44 }, - { 0x04, 0x8B }, - { 0x0A, 0x89 }, - { 0x0B, 0x81 }, - { 0x0C, 0xB4 }, - { 0x0D, 0x1D }, - { 0x10, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5849 -// ****************************************************************** -// * D3DDevice_SetRenderState_StencilFail -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_StencilFail, 5788, 8) - - { 0x0C, 0x89 }, - { 0x1E, 0x8B }, - { 0x28, 0x74 }, - { 0x36, 0xD2 }, - { 0x44, 0x3D }, - { 0x52, 0xC7 }, - { 0x60, 0x04 }, - { 0x6E, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice8::SetRenderState_LineWidth -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_LineWidth, 5788, 13) - - // D3DDevice_SetRenderState_LineWidth+0x00 : push ebx - { 0x00, 0x53 }, - - // D3DDevice_SetRenderState_LineWidth+0x0C : mov [esp+8+argo_0], ebx - { 0x0C, 0x89 }, - { 0x0D, 0x5C }, - { 0x0E, 0x24 }, - { 0x0F, 0x0C }, - - // D3DDevice_SetRenderState_LineWidth+0x28 : fstp [esp+10h+var_10] - { 0x28, 0xD9 }, - { 0x29, 0x1C }, - { 0x2A, 0x24 }, - - // D3DDevice_SetRenderState_LineWidth+0x30 : mov edi, eax - { 0x30, 0x8B }, - { 0x31, 0xF8 }, - - // D3DDevice_SetRenderState_LineWidth+0x41 : cmp eax, [esi+4] - { 0x41, 0x3B }, - { 0x42, 0x46 }, - { 0x43, 0x04 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4432 version -// ****************************************************************** -// * D3DDevice8::SetDepthClipPlanes -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetDepthClipPlanes, 5788, 18) - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x0C }, - { 0x04, 0x48 }, - { 0x05, 0x83 }, - { 0x06, 0xF8 }, - { 0x07, 0x03 }, - { 0x08, 0x56 }, - { 0x09, 0x8B }, - { 0x0A, 0x35 }, - - { 0x0F, 0x77 }, - { 0x10, 0x5F }, - - { 0x11, 0xFF }, - { 0x12, 0x24 }, - { 0x13, 0x85 }, - - { 0x7C, 0x8B }, - { 0x80, 0xE8 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5788 version -// ****************************************************************** -// * D3DDevice8::SetDepthClipPlanes -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetDepthClipPlanes, 5788, 13) - - // _D3DDevice_SetDepthClipPlanes+0x00 : mov eax, [esp+Flags] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x0C }, - - // _D3DDevice_SetDepthClipPlanes+0x00 : ja short loc_27ABD0 ; jumptable 0027AB71 default case - { 0x0F, 0x77 }, - { 0x10, 0x5F }, - - // _D3DDevice_SetDepthClipPlanes+0x00 : jmp ds:off_27ABEC[eax*4] ; switch jump - { 0x11, 0xFF }, - { 0x12, 0x24 }, - { 0x13, 0x85 }, - { 0x14, 0xEC }, - { 0x15, 0xAB }, - { 0x16, 0x27 }, - { 0x17, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * D3DDevice_SetPalette -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetPalette, 5788, 1+7, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x10, XREF_OFFSET_D3DDEVICE_M_PALETTES ), // Derived - - { 0x10, 0x98 }, - { 0x22, 0x0F }, - { 0x34, 0x00 }, - { 0x46, 0x9C }, - { 0x58, 0xC5 }, - { 0x6E, 0x8B }, - { 0x7C, 0x89 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_GetPushBufferOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetPushBufferOffset, 5788, 7) - - { 0x13, 0xCA }, - { 0x28, 0xFF }, - { 0x3D, 0x89 }, - { 0x52, 0x12 }, - { 0x67, 0xAB }, - { 0x7C, 0x51 }, - { 0x91, 0x5F }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5558 version -// ****************************************************************** -// * D3D::MakeRequestedSpace -// ****************************************************************** -OOVPA_XREF(D3D_MakeRequestedSpace, 5788, 28, // Also for 5849, 5933 - - XREF_D3D_MakeRequestedSpace, - XRefZero) - - { 0x00, 0x51 }, - { 0x01, 0x56 }, - { 0x02, 0x8B }, - { 0x03, 0x35 }, - - { 0x08, 0xF6 }, - { 0x09, 0x46 }, - { 0x0A, 0x08 }, - { 0x0B, 0x04 }, - { 0x0C, 0x57 }, - { 0x0D, 0x74 }, - { 0x0E, 0x26 }, - { 0x0F, 0x8B }, - { 0x10, 0x86 }, - { 0x11, 0x64 }, - { 0x12, 0x07 }, - { 0x13, 0x00 }, - { 0x14, 0x00 }, - { 0x15, 0x8B }, - { 0x16, 0x78 }, - { 0x17, 0x04 }, - { 0x18, 0x8B }, - { 0x19, 0x0E }, - { 0x1A, 0x8B }, - { 0x1B, 0x96 }, - { 0x1C, 0x68 }, - { 0x1D, 0x07 }, - { 0x1E, 0x00 }, - { 0x1F, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic D3DDevice_MakeSpace 4134 version -// ****************************************************************** -// * D3D::Unknown (D3D::MakeSpace?) -// ****************************************************************** -// * FOR DEBUGGING ONLY! -// ****************************************************************** -OOVPA_XREF(D3D_Unknown, 5788, 1+5, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x0A, XREF_D3D_MakeRequestedSpace ), - - { 0x05, 0x50 }, - { 0x06, 0xD1 }, - { 0x07, 0xE8 }, - { 0x08, 0x50 }, - { 0x0E, 0xC3 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5659 version -// ****************************************************************** -// * D3DDevice_AddRef -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_AddRef, 5788, 7) - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x38 }, - { 0x0A, 0x00 }, - { 0x0D, 0x88 }, - { 0x10, 0x00 }, - { 0x13, 0xC1 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3D::ClearStateBlockFlags -// ****************************************************************** -OOVPA_XREF(D3D_ClearStateBlockFlags, 5788, 9, - - XREF_D3D_ClearStateBlockFlags, - XRefZero) - - // D3D_ClearStateBlockFlags+0x0A : mov ecx, 0x87 - { 0x0A, 0xB9 }, - { 0x0B, 0x87 }, - - // D3D_ClearStateBlockFlags+0x16 : mov ecx, [edx+0x07A4] - { 0x16, 0x8B }, - { 0x17, 0x8A }, - { 0x18, 0xA4 }, - { 0x19, 0x07 }, - - // D3D_ClearStateBlockFlags+0x2F : add ecx, 0x90 - { 0x2F, 0x81 }, - { 0x30, 0xC1 }, - { 0x31, 0x90 }, -OOVPA_END; -#endif - // ****************************************************************** // * D3D::RecordStateBlock // ****************************************************************** @@ -854,353 +56,3 @@ OOVPA_XREF(D3D_RecordStateBlock, 5788, 10, { 0xD7, 0x0C }, { 0xD8, 0x01 }, OOVPA_END; - -#if 0 // No longer used, replaced by generic 4134 version -// ****************************************************************** -// * D3DDevice_SetRenderState_BackFillMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_BackFillMode, 5788, 7) - - { 0x0B, 0xA3 }, - { 0x14, 0x04 }, - { 0x23, 0x8B }, - { 0x2A, 0xC9 }, - { 0x35, 0xC7 }, - { 0x40, 0x08 }, - { 0x4C, 0x5F }, -OOVPA_END; -#endif - -#if 0 // Moved to 5558 -// ****************************************************************** -// * D3DDevice_GetTile -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetTile, 5788, 7) - - { 0x06, 0x8B }, - { 0x0E, 0x94 }, - { 0x16, 0x8B }, - { 0x1E, 0x04 }, - { 0x26, 0x48 }, - { 0x2E, 0x8B }, - { 0x36, 0x14 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3D::CDevice::KickOff -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_KickOff, 5788, 13) - - // D3D::CDevice::KickOff+0x0A : mov edx, [ecx+0x35C] - { 0x0A, 0x8B }, - { 0x0B, 0x96 }, - { 0x0C, 0x70 }, - { 0x0D, 0x07 }, - { 0x0E, 0x00 }, - { 0x0F, 0x00 }, - - // D3D::CDevice::KickOff+0x14 : test ch, 0x20 - { 0x14, 0xF6 }, - { 0x15, 0xC4 }, - { 0x16, 0x20 }, - - // D3D::CDevice::KickOff+0x24 : sfence - { 0x24, 0x0F }, - { 0x25, 0xAE }, - { 0x26, 0xF8 }, - - // D3D::CDevice::KickOff+0xAF : retn - { 0xAF, 0xC3 } -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5233 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleMode, 5788, 9) - - { 0x03, 0x04 }, - { 0x0A, 0xA3 }, - { 0x0F, 0x8B }, - { 0x12, 0x1A }, - { 0x17, 0x14 }, - { 0x1B, 0x75 }, - { 0x1C, 0x07 }, - { 0x24, 0xC2 }, - { 0x26, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5344 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleRenderTargetMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleRenderTargetMode, 5788, 9) - - { 0x03, 0x04 }, - { 0x0A, 0xA3 }, - { 0x0F, 0x8B }, - { 0x12, 0x1A }, - { 0x17, 0x14 }, - { 0x1B, 0x74 }, - { 0x1C, 0x07 }, - { 0x24, 0xC2 }, - { 0x26, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4627 version -// ****************************************************************** -// * D3DDevice_SetRenderState_MultiSampleAntiAlias -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetRenderState_MultiSampleAntiAlias, 5788, 7) - - { 0x0D, 0xCE }, - { 0x1E, 0x8B }, - { 0x2B, 0xF9 }, - { 0x3A, 0xCF }, - { 0x49, 0x00 }, - { 0x58, 0xC1 }, - { 0x6B, 0x5F }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetDisplayFieldStatus -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetDisplayFieldStatus, 5788, 7) - - { 0x06, 0x90 }, - { 0x0E, 0x04 }, - { 0x16, 0x00 }, - { 0x1E, 0x56 }, - { 0x26, 0xD2 }, - { 0x2E, 0x89 }, - { 0x36, 0x00 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3911 version -// ****************************************************************** -// * D3DDevice_GetScissors -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetScissors, 5788, 7) - - { 0x0B, 0x74 }, - { 0x14, 0x11 }, - { 0x1F, 0x04 }, - { 0x2A, 0x85 }, - { 0x35, 0xE1 }, - { 0x40, 0xC1 }, - { 0x4B, 0xA4 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5659 version -// ****************************************************************** -// * D3DDevice_GetBackMaterial -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetBackMaterial, 5788, 8) - - { 0x05, 0x56 }, - { 0x06, 0x57 }, - { 0x0A, 0x0C }, - { 0x0D, 0x44 }, - { 0x0E, 0x0F }, - { 0x12, 0x11 }, - { 0x16, 0xF3 }, - { 0x1A, 0xC2 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 3925 version -// ****************************************************************** -// * D3DDevice_DeleteStateBlock -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_DeleteStateBlock, 5788, 9) - - // D3DDevice_DeleteStateBlock(x)+26: mov eax, [esi+4] - { 0x13, 0x8B }, - { 0x14, 0x46 }, - { 0x15, 0x04 }, - - // D3DDevice_DeleteStateBlock(x)+1B: - { 0x23, 0x43 }, // inc ebx - { 0x24, 0x3B }, // cmp ebx, [edi] - { 0x25, 0x1F }, - - // D3DDevice_DeleteStateBlock(x)+34: cmp [edi+8], ebp - { 0x3C, 0x39 }, - { 0x3D, 0x6F }, - { 0x3E, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Used 3925 instead in 5788, 5849 -// ****************************************************************** -// * D3DDevice_SetRenderState_RopZCmpAlwaysRead -// ****************************************************************** -OOVPA_XREF(D3DDevice_SetRenderState_RopZCmpAlwaysRead, 5788, 1+6, - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x05, XREF_D3DRS_ROPZCMPALWAYSREAD ), - - { 0x01, 0x44 }, - { 0x04, 0xA3 }, - { 0x09, 0xE8 }, - { 0x0E, 0xC2 }, - { 0x0F, 0x04 }, - { 0x10, 0x00 }, -OOVPA_END; -#endif - -#if 0 //Used 3925 -// ****************************************************************** -// * D3DDevice_GetVertexShaderSize -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShaderSize, 5788, 13) - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x08 }, - - { 0x08, 0x8B }, - { 0x09, 0x4C }, - { 0x0A, 0x24 }, - { 0x0B, 0x04 }, - - { 0x0C, 0x8B }, - { 0x0D, 0x51 }, - { 0x0E, 0x07 }, - - { 0x11, 0xC2 }, - { 0x12, 0x08 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_GetShaderConstantMode -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetShaderConstantMode, 5788, 16) - - { 0x00, 0xA1 }, - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x28 }, - { 0x08, 0x19 }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - { 0x0B, 0x8B }, - { 0x0C, 0x54 }, - { 0x0D, 0x24 }, - { 0x0E, 0x04 }, - { 0x0F, 0x89 }, - { 0x10, 0x0A }, - { 0x11, 0xC2 }, - { 0x12, 0x04 }, - { 0x13, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_GetVertexShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetVertexShader, 5788, 16) - - { 0x00, 0xA1 }, - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x98 }, - { 0x08, 0x07 }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - { 0x0B, 0x8B }, - { 0x0C, 0x54 }, - { 0x0D, 0x24 }, - { 0x0E, 0x04 }, - { 0x0F, 0x89 }, - { 0x10, 0x0A }, - { 0x11, 0xC2 }, - { 0x12, 0x04 }, - { 0x13, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_GetPixelShader -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_GetPixelShader, 5788, 16) - - { 0x00, 0xA1 }, - - { 0x05, 0x8B }, - { 0x06, 0x88 }, - { 0x07, 0x84 }, - { 0x08, 0x07 }, - { 0x09, 0x00 }, - { 0x0A, 0x00 }, - { 0x0B, 0x8B }, - { 0x0C, 0x54 }, - { 0x0D, 0x24 }, - { 0x0E, 0x04 }, - { 0x0F, 0x89 }, - { 0x10, 0x0A }, - { 0x11, 0xC2 }, - { 0x12, 0x04 }, - { 0x13, 0x00 }, -OOVPA_END; -#endif - -#if 0 // Moved to 5659 -// ****************************************************************** -// * D3DDevice_GetTexture, named with 2 suffix to match EMUPATCH(D3DDevice_GetTexture2) -// ****************************************************************** -OOVPA_XREF(D3DDevice_GetTexture2, 5788, 1+23, // Up to 5849 - - XRefNoSaveIndex, - XRefOne) - - XREF_ENTRY( 0x0E, XREF_OFFSET_D3DDEVICE_M_TEXTURES ), // Derived - - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x04 }, - { 0x04, 0x8B }, - { 0x05, 0x0D }, - - { 0x0A, 0x56 }, - { 0x0B, 0x8D }, - { 0x0C, 0xB4 }, - { 0x0D, 0x81 }, - { 0x0E, 0x88 }, // GetTexture2 880F vs GetPalette2 980F - { 0x0F, 0x0F }, - - { 0x10, 0x00 }, - { 0x11, 0x00 }, - { 0x12, 0x8B }, - { 0x13, 0x06 }, - { 0x14, 0x85 }, - { 0x15, 0xC0 }, - { 0x16, 0x74 }, - - { 0x18, 0x50 }, - { 0x19, 0xE8 }, - - { 0x1E, 0x8B }, - { 0x1F, 0x06 }, -// { 0x21, 0xC2 }, -OOVPA_END; -#endif diff --git a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5849.inl b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5849.inl index 64fb00414..841e4b042 100644 --- a/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5849.inl +++ b/src/CxbxKrnl/HLEDataBase/D3D8.1.0.5849.inl @@ -65,99 +65,6 @@ OOVPA_XREF(D3D_SetFence, 5849, 7, { 0xA8, 0x75 }, OOVPA_END; -#if 0 // No longer used, replaced by generic 5558 version -// ****************************************************************** -// * D3D::BlockOnTime -// * Source: Spiderman 2 -// ****************************************************************** -OOVPA_XREF(D3D_BlockOnTime, 5849, 6, - - XREF_D3D_BlockOnTime, - XRefZero) - - { 0x09, 0x30 }, - { 0x27, 0x07 }, - { 0x7E, 0x2B }, - { 0xA5, 0x20 }, - { 0xD9, 0x56 }, - { 0xF8, 0x47 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4034 version -// ****************************************************************** -// * Get2DSurfaceDesc -// ****************************************************************** -// * NOTE: D3DTexture_GetLevelDesc and D3DSurface_GetDesc redirect here -// ****************************************************************** -OOVPA_NO_XREF(Get2DSurfaceDesc, 5849, 10) - - // Get2DSurfaceDesc+0x2B : movzx edx, byte ptr [edi+0x0D] - { 0x2B, 0x0F }, - { 0x2C, 0xB6 }, - { 0x2D, 0x57 }, - { 0x2E, 0x0D }, - - // Get2DSurfaceDesc+0x52 : mov edx, [eax+0x1A14] - { 0x52, 0x8B }, - { 0x53, 0x90 }, - { 0x54, 0x14 }, - { 0x55, 0x1A }, - - // Get2DSurfaceDesc+0xAE : retn 0x0C - { 0xAE, 0xC2 }, - { 0xAF, 0x0C }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 5455 version -// ****************************************************************** -// * D3DDevice_SetScreenSpaceOffset -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetScreenSpaceOffset, 5849, 8) - // D3DDevice_SetScreenSpaceOffset+0x13 : fstp [esi+0x0EF8] - { 0x13, 0xD9 }, - { 0x14, 0x9E }, - { 0x15, 0xF8 }, - { 0x16, 0x0E }, - - // D3DDevice_SetScreenSpaceOffset+0x33 : jb +0x05 - { 0x33, 0x72 }, - { 0x34, 0x05 }, - - // D3DDevice_SetScreenSpaceOffset+0x46 : retn 0x08 - { 0x46, 0xC2 }, - { 0x47, 0x08 }, -OOVPA_END; -#endif - -#if 0 // No longer used, replaced by generic 4432 version -// ****************************************************************** -// * D3DDevice8::SetDepthClipPlanes -// ****************************************************************** -OOVPA_NO_XREF(D3DDevice_SetDepthClipPlanes, 5849, 11) - - // _D3DDevice_SetDepthClipPlanes+0x00 : mov eax, [esp+Flags] - { 0x00, 0x8B }, - { 0x01, 0x44 }, - { 0x02, 0x24 }, - { 0x03, 0x0C }, - - // _D3DDevice_SetDepthClipPlanes+0x0F : ja short loc_27ABD0 ; jumptable 0027AB71 default case - { 0x0F, 0x77 }, - { 0x10, 0x5F }, - - // _D3DDevice_SetDepthClipPlanes+0x11 : jmp ds:off_27ABEC[eax*4] ; switch jump - { 0x11, 0xFF }, - { 0x12, 0x24 }, - { 0x13, 0x85 }, - - // _D3DDevice_SetDepthClipPlanes+0x88 : retn 0Ch - { 0x88, 0xC2 }, - { 0x89, 0x0C }, -OOVPA_END; -#endif - // ****************************************************************** // * D3DDevice_SetRenderState_StencilFail // ******************************************************************