mirror of https://github.com/PCSX2/pcsx2.git
GS-hw: Fix warnings.
Wunused-variable, Wunused-lambda-capture.
This commit is contained in:
parent
64ab92ced6
commit
51aa7c8ecf
|
@ -1102,9 +1102,8 @@ bool GSRendererHW::CheckNextDrawForSplitClear(const GSVector4i& r, u32* pages_co
|
|||
|
||||
void GSRendererHW::FinishSplitClear()
|
||||
{
|
||||
const u32 start_bp = m_split_clear_start.Block();
|
||||
GL_INS("FinishSplitClear(): Start %x FBW %u PSM %s, %u pages, %08X color", start_bp, m_split_clear_start.FBW,
|
||||
psm_str(m_split_clear_start.PSM), m_split_clear_pages, m_split_clear_color);
|
||||
GL_INS("FinishSplitClear(): Start %x FBW %u PSM %s, %u pages, %08X color", m_split_clear_start.Block(),
|
||||
m_split_clear_start.FBW, psm_str(m_split_clear_start.PSM), m_split_clear_pages, m_split_clear_color);
|
||||
|
||||
// If this was a tall single-page draw, try to get a better BW from somewhere.
|
||||
if (m_split_clear_start.FBW <= 1 && m_split_clear_pages >= 16) // 1024 high
|
||||
|
|
|
@ -1485,18 +1485,17 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(GIFRegTEX0 TEX0, const GSVe
|
|||
GSTextureCache::Target* GSTextureCache::CreateTarget(GIFRegTEX0 TEX0, const GSVector2i& size, float scale, int type,
|
||||
bool used, u32 fbmask, bool is_frame, bool preload, bool preserve_target, const GSVector4i draw_rect)
|
||||
{
|
||||
const u32 bp = TEX0.TBP0;
|
||||
const GSLocalMemory::psm_t& psm_s = GSLocalMemory::m_psm[TEX0.PSM];
|
||||
|
||||
if (type == DepthStencil)
|
||||
{
|
||||
GL_CACHE("TC: Lookup Target(Depth) %dx%d, miss (0x%x, TBW %d, %s)", size.x, size.y, bp,
|
||||
GL_CACHE("TC: Lookup Target(Depth) %dx%d, miss (0x%x, TBW %d, %s)", size.x, size.y, TEX0.TBP0,
|
||||
TEX0.TBW, psm_str(TEX0.PSM));
|
||||
}
|
||||
else
|
||||
{
|
||||
GL_CACHE("TC: Lookup %s(Color) %dx%d FBMSK %08x, miss (0x%x, TBW %d, %s)", is_frame ? "Frame" : "Target",
|
||||
size.x, size.y, fbmask, bp, TEX0.TBW, psm_str(TEX0.PSM));
|
||||
size.x, size.y, fbmask, TEX0.TBP0, TEX0.TBW, psm_str(TEX0.PSM));
|
||||
}
|
||||
|
||||
Target* dst = Target::Create(TEX0, size.x, size.y, scale, type, true);
|
||||
|
@ -2095,7 +2094,7 @@ void GSTextureCache::InvalidateVideoMem(const GSOffset& off, const GSVector4i& r
|
|||
{
|
||||
// Dirty individual pages.
|
||||
GL_PUSH("TC: Dirty pages in target %x TBW %u PSM %s", t->m_TEX0.TBP0, t->m_TEX0.TBW, psm_str(t->m_TEX0.PSM));
|
||||
off.loopPages(r, [this, psm, rgba, t](u32 page) {
|
||||
off.loopPages(r, [this, rgba, t](u32 page) {
|
||||
const GSVector4i page_rc = GSLocalMemory::GetRectForPageOffset(t->m_TEX0.TBP0, page * BLOCKS_PER_PAGE, t->m_TEX0.TBW, t->m_TEX0.PSM);
|
||||
GL_INS("TC: Dirty BP %x rect (%d,%d=>%d,%d)", page * BLOCKS_PER_PAGE, page_rc.x, page_rc.y, page_rc.z, page_rc.w);
|
||||
AddDirtyRectTarget(t, page_rc, t->m_TEX0.PSM, t->m_TEX0.TBW, rgba, false);
|
||||
|
|
Loading…
Reference in New Issue