Skip to content

Commit

Permalink
GcmZcullInfo::Pack and removed 32-bit OAL dll
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAltea committed Jun 7, 2014
1 parent 4ac8061 commit 5e00dfb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
Binary file removed OpenAL/Win32/libOpenAL32.dll.a
Binary file not shown.
18 changes: 16 additions & 2 deletions rpcs3/Emu/GS/GCM.h
Expand Up @@ -220,8 +220,8 @@ struct GcmZcullInfo
u32 m_cullStart;
u32 m_zFormat;
u32 m_aaFormat;
u32 m_zCullDir;
u32 m_zCullFormat;
u32 m_zcullDir;
u32 m_zcullFormat;
u32 m_sFunc;
u32 m_sRef;
u32 m_sMask;
Expand All @@ -231,6 +231,20 @@ struct GcmZcullInfo
{
memset(this, 0, sizeof(*this));
}

CellGcmZcullInfo Pack()
{
CellGcmZcullInfo ret;

ret.region = (1<<0) | (m_zFormat<<4) | (m_aaFormat<<8);
ret.size = ((m_width>>6)<<22) | ((m_height>>6)<<6);
ret.start = m_cullStart&(~0xFFF);
ret.offset = m_offset;
ret.status0 = (m_zcullDir<<1) | (m_zcullFormat<<2) | ((m_sFunc&0xF)<<12) | (m_sRef<<16) | (m_sMask<<24);
ret.status1 = (0x2000<<0) | (0x20<<16);

return ret;
}
};

struct GcmTileInfo
Expand Down
7 changes: 3 additions & 4 deletions rpcs3/Emu/SysCalls/Modules/cellGcmSys.cpp
Expand Up @@ -603,14 +603,13 @@ int cellGcmSetZcull(u8 index, u32 offset, u32 width, u32 height, u32 cullStart,
zcull.m_cullStart = cullStart;
zcull.m_zFormat = zFormat;
zcull.m_aaFormat = aaFormat;
zcull.m_zCullDir = zCullDir;
zcull.m_zCullFormat = zCullFormat;
zcull.m_zcullDir = zCullDir;
zcull.m_zcullFormat = zCullFormat;
zcull.m_sFunc = sFunc;
zcull.m_sRef = sRef;
zcull.m_sMask = sMask;

// TODO:
//Memory.WriteData(Emu.GetGSManager().GetRender().m_zculls_addr + sizeof(CellGcmZcullInfo)* index, zcull.Pack());
Memory.WriteData(Emu.GetGSManager().GetRender().m_zculls_addr + sizeof(CellGcmZcullInfo)* index, zcull.Pack());

return CELL_OK;
}
Expand Down
2 changes: 1 addition & 1 deletion rpcs3/Emu/SysCalls/Modules/cellSpurs.cpp
Expand Up @@ -154,7 +154,7 @@ int cellSpursAttributeSetNamePrefix(mem_ptr_t<CellSpursAttribute> attr, const me
return CELL_SPURS_CORE_ERROR_NULL_POINTER;
}

if (size > 15)
if (size > CELL_SPURS_NAME_MAX_LENGTH)
{
cellSpurs.Error("cellSpursAttributeSetNamePrefix : CELL_SPURS_CORE_ERROR_INVAL");
return CELL_SPURS_CORE_ERROR_INVAL;
Expand Down

0 comments on commit 5e00dfb

Please sign in to comment.