diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2011-07-18 08:27:30 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2011-07-18 08:27:30 +0000 |
| commit | fc261b32bfd1b1495cf1ced1e05176db60668d38 (patch) | |
| tree | 7d7550ba47694ac35872ee78ed7e65866d3c4ffc /Source/Core/VideoCommon/Src/BPFunctions.cpp | |
| parent | 7135dba54ef70331f5e8a1903033ab5b602bc671 (diff) | |
add definitions of some bp mem bits relating to interlacing (no behavior change)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7683 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/BPFunctions.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/BPFunctions.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/BPFunctions.cpp b/Source/Core/VideoCommon/Src/BPFunctions.cpp index 6e9361fb28..f323f03142 100644 --- a/Source/Core/VideoCommon/Src/BPFunctions.cpp +++ b/Source/Core/VideoCommon/Src/BPFunctions.cpp @@ -239,6 +239,30 @@ void SetTextureMode(const BPCmd &bp) void SetInterlacingMode(const BPCmd &bp) { // TODO + switch (bp.address) + { + case BPMEM_FIELDMODE: + { + // SDK always sets bpmem.lineptwidth.lineaspect via BPMEM_LINEPTWIDTH + // just before this cmd + const char *action[] = { "don't adjust", "adjust" }; + DEBUG_LOG(VIDEO, "BPMEM_FIELDMODE texLOD:%s lineaspect:%s", + action[bpmem.fieldmode.texLOD], + action[bpmem.lineptwidth.lineaspect]); + } + break; + case BPMEM_FIELDMASK: + { + // Determines if fields will be written to EFB (always computed) + const char *action[] = { "skip", "write" }; + DEBUG_LOG(VIDEO, "BPMEM_FIELDMASK even:%s odd:%s", + action[bpmem.fieldmask.even], action[bpmem.fieldmask.odd]); + } + break; + default: + ERROR_LOG(VIDEO, "SetInterlacingMode default"); + break; + } } }; |
