summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-02-09 18:29:13 -0500
committerLioncash <mathew1800@gmail.com>2014-02-09 19:40:11 -0500
commitebb48d019eec1c29a37a406e2db16d7565367faa (patch)
tree254aa42356ced8de7c87d9da181cff4475c12ba4 /Source/Core/VideoBackends/Software
parent40182a48a56b8e294e126c64f5f37910a40c67cd (diff)
Clean up some struct indentations
Also cleaned up the indentations of some variable declarations.
Diffstat (limited to 'Source/Core/VideoBackends/Software')
-rw-r--r--Source/Core/VideoBackends/Software/SWCommandProcessor.h34
-rw-r--r--Source/Core/VideoBackends/Software/SWPixelEngine.h50
-rw-r--r--Source/Core/VideoBackends/Software/SWmain.cpp6
3 files changed, 45 insertions, 45 deletions
diff --git a/Source/Core/VideoBackends/Software/SWCommandProcessor.h b/Source/Core/VideoBackends/Software/SWCommandProcessor.h
index f16f2c2c32..8273af2f31 100644
--- a/Source/Core/VideoBackends/Software/SWCommandProcessor.h
+++ b/Source/Core/VideoBackends/Software/SWCommandProcessor.h
@@ -48,12 +48,12 @@ namespace SWCommandProcessor
{
struct
{
- u16 OverflowHiWatermark : 1;
- u16 UnderflowLoWatermark: 1;
- u16 ReadIdle : 1; // done reading
- u16 CommandIdle : 1; // done processing commands
- u16 Breakpoint : 1;
- u16 : 11;
+ u16 OverflowHiWatermark : 1;
+ u16 UnderflowLoWatermark : 1;
+ u16 ReadIdle : 1; // done reading
+ u16 CommandIdle : 1; // done processing commands
+ u16 Breakpoint : 1;
+ u16 : 11;
};
u16 Hex;
UCPStatusReg() {Hex = 0; }
@@ -65,13 +65,13 @@ namespace SWCommandProcessor
{
struct
{
- u16 GPReadEnable : 1;
- u16 BPEnable : 1;
- u16 FifoOverflowIntEnable : 1;
- u16 FifoUnderflowIntEnable : 1;
- u16 GPLinkEnable : 1;
- u16 BreakPointIntEnable : 1;
- u16 : 10;
+ u16 GPReadEnable : 1;
+ u16 BPEnable : 1;
+ u16 FifoOverflowIntEnable : 1;
+ u16 FifoUnderflowIntEnable : 1;
+ u16 GPLinkEnable : 1;
+ u16 BreakPointIntEnable : 1;
+ u16 : 10;
};
u16 Hex;
UCPCtrlReg() {Hex = 0; }
@@ -83,10 +83,10 @@ namespace SWCommandProcessor
{
struct
{
- u16 ClearFifoOverflow : 1;
- u16 ClearFifoUnderflow : 1;
- u16 ClearMetrices : 1;
- u16 : 13;
+ u16 ClearFifoOverflow : 1;
+ u16 ClearFifoUnderflow : 1;
+ u16 ClearMetrices : 1;
+ u16 : 13;
};
u16 Hex;
UCPClearReg() {Hex = 0; }
diff --git a/Source/Core/VideoBackends/Software/SWPixelEngine.h b/Source/Core/VideoBackends/Software/SWPixelEngine.h
index 71cca73c2c..4a6c6ec2aa 100644
--- a/Source/Core/VideoBackends/Software/SWPixelEngine.h
+++ b/Source/Core/VideoBackends/Software/SWPixelEngine.h
@@ -48,10 +48,10 @@ namespace SWPixelEngine
u16 Hex;
struct
{
- u16 ZCompEnable : 1; // Z Comparator Enable
- u16 Function : 3;
- u16 ZUpdEnable : 1;
- u16 : 11;
+ u16 ZCompEnable : 1; // Z Comparator Enable
+ u16 Function : 3;
+ u16 ZUpdEnable : 1;
+ u16 : 11;
};
};
@@ -60,15 +60,15 @@ namespace SWPixelEngine
u16 Hex;
struct
{
- u16 BMMath : 1; // GX_BM_BLEND || GX_BM_SUBSTRACT
- u16 BMLogic : 1; // GX_BM_LOGIC
- u16 Dither : 1;
- u16 ColorUpdEnable : 1;
- u16 AlphaUpdEnable : 1;
- u16 DstFactor : 3;
- u16 SrcFactor : 3;
- u16 Substract : 1; // Additive mode by default
- u16 BlendOperator : 4;
+ u16 BMMath : 1; // GX_BM_BLEND || GX_BM_SUBSTRACT
+ u16 BMLogic : 1; // GX_BM_LOGIC
+ u16 Dither : 1;
+ u16 ColorUpdEnable : 1;
+ u16 AlphaUpdEnable : 1;
+ u16 DstFactor : 3;
+ u16 SrcFactor : 3;
+ u16 Substract : 1; // Additive mode by default
+ u16 BlendOperator : 4;
};
};
@@ -77,9 +77,9 @@ namespace SWPixelEngine
u16 Hex;
struct
{
- u16 DstAlpha : 8;
- u16 Enable : 1;
- u16 : 7;
+ u16 DstAlpha : 8;
+ u16 Enable : 1;
+ u16 : 7;
};
};
@@ -88,8 +88,8 @@ namespace SWPixelEngine
u16 Hex;
struct
{
- u16 Threshold : 8;
- u16 CompareMode : 8;
+ u16 Threshold : 8;
+ u16 CompareMode : 8;
};
};
@@ -98,8 +98,8 @@ namespace SWPixelEngine
u16 Hex;
struct
{
- u16 ReadMode : 3;
- u16 : 13;
+ u16 ReadMode : 3;
+ u16 : 13;
};
};
@@ -107,11 +107,11 @@ namespace SWPixelEngine
{
struct
{
- u16 PETokenEnable : 1;
- u16 PEFinishEnable : 1;
- u16 PEToken : 1; // write only
- u16 PEFinish : 1; // write only
- u16 : 12;
+ u16 PETokenEnable : 1;
+ u16 PEFinishEnable : 1;
+ u16 PEToken : 1; // write only
+ u16 PEFinish : 1; // write only
+ u16 : 12;
};
u16 Hex;
UPECtrlReg() {Hex = 0; }
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp
index 2182fdcb8f..4f60f9d4f6 100644
--- a/Source/Core/VideoBackends/Software/SWmain.cpp
+++ b/Source/Core/VideoBackends/Software/SWmain.cpp
@@ -41,9 +41,9 @@ static volatile u32 s_swapRequested = false;
static volatile struct
{
- u32 xfbAddr;
- u32 fbWidth;
- u32 fbHeight;
+ u32 xfbAddr;
+ u32 fbWidth;
+ u32 fbHeight;
} s_beginFieldArgs;
namespace SW