summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@googlemail.com>2010-10-24 19:52:52 +0000
committerNeoBrainX <NeoBrainX@googlemail.com>2010-10-24 19:52:52 +0000
commitab53c84dcf7fa791c778a868866dd006e5dfa50d (patch)
tree962b9fc5c33d87ae2a17b81829abb80574830233 /Source/Core/VideoCommon
parentb71cd5f3832b3b426d71af84f6c6baffeea193ef (diff)
Properly emulate the alpha read pixel engine register function (used for EFB peeks).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6313 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/PixelEngine.cpp11
-rw-r--r--Source/Core/VideoCommon/Src/PixelEngine.h11
2 files changed, 11 insertions, 11 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelEngine.cpp b/Source/Core/VideoCommon/Src/PixelEngine.cpp
index 2785d66826..580571b328 100644
--- a/Source/Core/VideoCommon/Src/PixelEngine.cpp
+++ b/Source/Core/VideoCommon/Src/PixelEngine.cpp
@@ -81,17 +81,6 @@ union UPEAlphaModeConfReg
};
};
-// Not sure about this reg...
-union UPEAlphaReadReg
-{
- u16 Hex;
- struct
- {
- u16 ReadMode : 3;
- u16 : 13;
- };
-};
-
// fifo Control Register
union UPECtrlReg
{
diff --git a/Source/Core/VideoCommon/Src/PixelEngine.h b/Source/Core/VideoCommon/Src/PixelEngine.h
index 5b773c6c9b..84b30a1bb5 100644
--- a/Source/Core/VideoCommon/Src/PixelEngine.h
+++ b/Source/Core/VideoCommon/Src/PixelEngine.h
@@ -54,6 +54,17 @@ enum
namespace PixelEngine
{
+// ReadMode specifies the returned alpha channel for EFB peeks
+union UPEAlphaReadReg
+{
+ u16 Hex;
+ struct
+ {
+ u16 ReadMode : 3;
+ u16 : 13;
+ };
+};
+
void Init();
void DoState(PointerWrap &p);