BPStructs: Reindent BPWritten

This commit is contained in:
Jasper St. Pierre
2014-05-20 11:28:08 -04:00
parent c33a1b4b28
commit 07ab77d31c

View File

@ -43,6 +43,7 @@ void RenderToXFB(const BPCmd &bp, const EFBRectangle &rc, float yScale, float xf
{ {
Renderer::RenderToXFB(xfbAddr, dstWidth, dstHeight, rc, gamma); Renderer::RenderToXFB(xfbAddr, dstWidth, dstHeight, rc, gamma);
} }
void BPWritten(const BPCmd& bp) void BPWritten(const BPCmd& bp)
{ {
/* /*
@ -90,7 +91,6 @@ void BPWritten(const BPCmd& bp)
switch (bp.address) switch (bp.address)
{ {
case BPMEM_GENMODE: // Set the Generation Mode case BPMEM_GENMODE: // Set the Generation Mode
{
PRIM_LOG("genmode: texgen=%d, col=%d, multisampling=%d, tev=%d, cullmode=%d, ind=%d, zfeeze=%d", PRIM_LOG("genmode: texgen=%d, col=%d, multisampling=%d, tev=%d, cullmode=%d, ind=%d, zfeeze=%d",
(u32)bpmem.genMode.numtexgens, (u32)bpmem.genMode.numcolchans, (u32)bpmem.genMode.numtexgens, (u32)bpmem.genMode.numcolchans,
(u32)bpmem.genMode.multisampling, (u32)bpmem.genMode.numtevstages+1, (u32)bpmem.genMode.cullmode, (u32)bpmem.genMode.multisampling, (u32)bpmem.genMode.numtevstages+1, (u32)bpmem.genMode.cullmode,
@ -100,7 +100,6 @@ void BPWritten(const BPCmd& bp)
if (bp.changes & 0xC000) if (bp.changes & 0xC000)
SetGenerationMode(); SetGenerationMode();
break; break;
}
case BPMEM_IND_MTXA: // Index Matrix Changed case BPMEM_IND_MTXA: // Index Matrix Changed
case BPMEM_IND_MTXB: case BPMEM_IND_MTXB:
case BPMEM_IND_MTXC: case BPMEM_IND_MTXC:
@ -139,7 +138,6 @@ void BPWritten(const BPCmd& bp)
SetDepthMode(); SetDepthMode();
break; break;
case BPMEM_BLENDMODE: // Blending Control case BPMEM_BLENDMODE: // Blending Control
{
if (bp.changes & 0xFFFF) if (bp.changes & 0xFFFF)
{ {
PRIM_LOG("blendmode: en=%d, open=%d, colupd=%d, alphaupd=%d, dst=%d, src=%d, sub=%d, mode=%d", PRIM_LOG("blendmode: en=%d, open=%d, colupd=%d, alphaupd=%d, dst=%d, src=%d, sub=%d, mode=%d",
@ -164,16 +162,14 @@ void BPWritten(const BPCmd& bp)
SetColorMask(); SetColorMask();
} }
break; break;
}
case BPMEM_CONSTANTALPHA: // Set Destination Alpha case BPMEM_CONSTANTALPHA: // Set Destination Alpha
{
PRIM_LOG("constalpha: alp=%d, en=%d", bpmem.dstalpha.alpha, bpmem.dstalpha.enable); PRIM_LOG("constalpha: alp=%d, en=%d", bpmem.dstalpha.alpha, bpmem.dstalpha.enable);
if (bp.changes & 0xFF) if (bp.changes & 0xFF)
PixelShaderManager::SetDestAlpha(); PixelShaderManager::SetDestAlpha();
if (bp.changes & 0x100) if (bp.changes & 0x100)
SetBlendMode(); SetBlendMode();
break; break;
}
// This is called when the game is done drawing the new frame (eg: like in DX: Begin(); Draw(); End();) // This is called when the game is done drawing the new frame (eg: like in DX: Begin(); Draw(); End();)
// Triggers an interrupt on the PPC side so that the game knows when the GPU has finished drawing. // Triggers an interrupt on the PPC side so that the game knows when the GPU has finished drawing.
// Tokens are similar. // Tokens are similar.
@ -329,8 +325,8 @@ void BPWritten(const BPCmd& bp)
const char* pztype[] = {"Z8", "Z16", "Z24", "?"}; const char* pztype[] = {"Z8", "Z16", "Z24", "?"};
PRIM_LOG("ztex op=%s, type=%s", pzop[bpmem.ztex2.op], pztype[bpmem.ztex2.type]); PRIM_LOG("ztex op=%s, type=%s", pzop[bpmem.ztex2.op], pztype[bpmem.ztex2.type]);
#endif #endif
break;
} }
break;
// ---------------------------------- // ----------------------------------
// Display Copy Filtering Control - GX_SetCopyFilter(u8 aa,u8 sample_pattern[12][2],u8 vf,u8 vfilter[7]) // Display Copy Filtering Control - GX_SetCopyFilter(u8 aa,u8 sample_pattern[12][2],u8 vf,u8 vfilter[7])
// Fields: Destination, Frame2Field, Gamma, Source // Fields: Destination, Frame2Field, Gamma, Source
@ -403,15 +399,18 @@ void BPWritten(const BPCmd& bp)
case BPMEM_MIPMAP_STRIDE: // MipMap Stride Channel case BPMEM_MIPMAP_STRIDE: // MipMap Stride Channel
case BPMEM_COPYYSCALE: // Display Copy Y Scale case BPMEM_COPYYSCALE: // Display Copy Y Scale
case BPMEM_IREF: /* 24 RID
21 BC3 - Ind. Tex Stage 3 NTexCoord /* 24 RID
18 BI3 - Ind. Tex Stage 3 NTexMap * 21 BC3 - Ind. Tex Stage 3 NTexCoord
15 BC2 - Ind. Tex Stage 2 NTexCoord * 18 BI3 - Ind. Tex Stage 3 NTexMap
12 BI2 - Ind. Tex Stage 2 NTexMap * 15 BC2 - Ind. Tex Stage 2 NTexCoord
9 BC1 - Ind. Tex Stage 1 NTexCoord * 12 BI2 - Ind. Tex Stage 2 NTexMap
6 BI1 - Ind. Tex Stage 1 NTexMap * 9 BC1 - Ind. Tex Stage 1 NTexCoord
3 BC0 - Ind. Tex Stage 0 NTexCoord * 6 BI1 - Ind. Tex Stage 1 NTexMap
0 BI0 - Ind. Tex Stage 0 NTexMap*/ * 3 BC0 - Ind. Tex Stage 0 NTexCoord
* 0 BI0 - Ind. Tex Stage 0 NTexMap */
case BPMEM_IREF:
case BPMEM_TEV_KSEL: // Texture Environment Swap Mode Table 0 case BPMEM_TEV_KSEL: // Texture Environment Swap Mode Table 0
case BPMEM_TEV_KSEL+1: // Texture Environment Swap Mode Table 1 case BPMEM_TEV_KSEL+1: // Texture Environment Swap Mode Table 1
case BPMEM_TEV_KSEL+2: // Texture Environment Swap Mode Table 2 case BPMEM_TEV_KSEL+2: // Texture Environment Swap Mode Table 2