Some compiler warnings and eol-style.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6418 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
0da42fcca7
commit
62a7f101a7
|
@ -224,23 +224,23 @@ inline u64 CreateMapId(u32 address, u32 size)
|
||||||
|
|
||||||
inline u64 CreateVMapId(u8 VATUSED)
|
inline u64 CreateVMapId(u8 VATUSED)
|
||||||
{
|
{
|
||||||
u64 vmat_id = 0;
|
u64 vmap_id = 0;
|
||||||
for(int i = 0; i < 8 ; i++)
|
for(int i = 0; i < 8 ; i++)
|
||||||
{
|
{
|
||||||
if(VATUSED & (1 << i))
|
if(VATUSED & (1 << i))
|
||||||
{
|
{
|
||||||
//vmat_id ^= GetHash64((u8*)(&g_VtxAttr[i].g0.),sizeof(VAT),0);
|
//vmap_id ^= GetHash64((u8*)(&g_VtxAttr[i].g0.),sizeof(VAT),0);
|
||||||
if(vmat_id != 0)
|
if(vmap_id != 0)
|
||||||
{
|
{
|
||||||
vmat_id ^= (((u64)g_VtxAttr[i].g0.Hex) | (((u64)g_VtxAttr[i].g1.Hex) << 32)) ^ (((u64)g_VtxAttr[i].g2.Hex) << 16);
|
vmap_id ^= (((u64)g_VtxAttr[i].g0.Hex) | (((u64)g_VtxAttr[i].g1.Hex) << 32)) ^ (((u64)g_VtxAttr[i].g2.Hex) << 16);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vmat_id = (((u64)g_VtxAttr[i].g0.Hex) | (((u64)g_VtxAttr[i].g1.Hex) << 32)) ^ (((u64)g_VtxAttr[i].g2.Hex) << 16);
|
vmap_id = (((u64)g_VtxAttr[i].g0.Hex) | (((u64)g_VtxAttr[i].g1.Hex) << 32)) ^ (((u64)g_VtxAttr[i].g2.Hex) << 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return vmat_id;
|
return vmap_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef std::map<u64, CachedDisplayList> DLMap;
|
typedef std::map<u64, CachedDisplayList> DLMap;
|
||||||
|
@ -689,7 +689,6 @@ bool HandleDisplayList(u32 address, u32 size)
|
||||||
if (Parentiter != DLCache::dl_map.end())
|
if (Parentiter != DLCache::dl_map.end())
|
||||||
{
|
{
|
||||||
vhash = DLCache::CreateVMapId(Parentiter->second.VATUsed);
|
vhash = DLCache::CreateVMapId(Parentiter->second.VATUsed);
|
||||||
DLCache::VDlist &tvdl = Parentiter->second;
|
|
||||||
iter = Parentiter->second.dl_map.find(vhash);
|
iter = Parentiter->second.dl_map.find(vhash);
|
||||||
childexist = iter != Parentiter->second.dl_map.end();
|
childexist = iter != Parentiter->second.dl_map.end();
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,6 +117,7 @@ void FramebufferManagerBase::CopyToVirtualXFB(u32 xfbAddr, u32 fbWidth, u32 fbHe
|
||||||
{
|
{
|
||||||
// create a new Virtual XFB and place it at the front of the list
|
// create a new Virtual XFB and place it at the front of the list
|
||||||
VirtualXFB v;
|
VirtualXFB v;
|
||||||
|
memset(&v, 0, sizeof v);
|
||||||
m_virtualXFBList.push_front(v);
|
m_virtualXFBList.push_front(v);
|
||||||
vxfb = m_virtualXFBList.begin();
|
vxfb = m_virtualXFBList.begin();
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,8 +27,8 @@ struct XFBSourceBase
|
||||||
u32 srcWidth;
|
u32 srcWidth;
|
||||||
u32 srcHeight;
|
u32 srcHeight;
|
||||||
|
|
||||||
int texWidth;
|
unsigned int texWidth;
|
||||||
int texHeight;
|
unsigned int texHeight;
|
||||||
|
|
||||||
// TODO: only used by OGL
|
// TODO: only used by OGL
|
||||||
TargetRectangle sourceRc;
|
TargetRectangle sourceRc;
|
||||||
|
|
Loading…
Reference in New Issue