From 479abde9f4c752aaf1ca113d18159a74bc8aebb1 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Sun, 11 Oct 2015 13:37:41 +1300 Subject: BPMemory: Convert a number of unions to BitFields --- Source/Core/VideoCommon/BPStructs.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/BPStructs.cpp') diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 204c637b94..509718003c 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -158,7 +158,8 @@ static void BPWritten(const BPCmd& bp) } return; 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.Value(), + bpmem.dstalpha.enable.Value()); if (bp.changes & 0xFF) PixelShaderManager::SetDestAlpha(); if (bp.changes & 0x100) @@ -322,7 +323,7 @@ static void BPWritten(const BPCmd& bp) } return; case BPMEM_BIAS: // BIAS - PRIM_LOG("ztex bias=0x%x", bpmem.ztex1.bias); + PRIM_LOG("ztex bias=0x%x", bpmem.ztex1.bias.Value()); if (bp.changes) PixelShaderManager::SetZTextureBias(); return; @@ -1281,7 +1282,7 @@ void GetBPRegInfo(const u8* data, std::string* name, std::string* desc) "Tex sel: %d\n", (data[0] - BPMEM_TEV_ALPHA_ENV) / 2, tevin[ac.a], tevin[ac.b], tevin[ac.c], tevin[ac.d], tevbias[ac.bias], tevop[ac.op], no_yes[ac.clamp], - tevscale[ac.shift], tevout[ac.dest], ac.rswap, ac.tswap); + tevscale[ac.shift], tevout[ac.dest], ac.rswap.Value(), ac.tswap.Value()); break; } -- cgit v1.2.3