Fix Mii Maker texture export + remove GX2SetColorBuffer assertion for linear special.

This commit is contained in:
Arian Kordi 2026-07-08 19:08:05 -04:00
parent 244aeb00dd
commit 1e1b2c14c5
2 changed files with 3 additions and 4 deletions

View File

@ -1307,8 +1307,9 @@ LatteTexture::LatteTexture(Latte::E_DIM dim, MPTR physAddress, MPTR physMipAddre
} }
} }
} }
// determine if this texture should ever be mirrored to CPU RAM // determine if this texture should ever be mirrored to CPU RAM.
if (this->tileMode == Latte::E_HWTILEMODE::TM_LINEAR_ALIGNED) if (this->tileMode == Latte::E_HWTILEMODE::TM_LINEAR_ALIGNED ||
this->tileMode == Latte::E_HWTILEMODE::TM_LINEAR_GENERAL)
{ {
this->enableReadback = true; this->enableReadback = true;
} }

View File

@ -176,8 +176,6 @@ void gx2Export_GX2SetColorBuffer(PPCInterpreter_t* hCPU)
gx2WriteGather_submitU32AsBE(mmCB_COLOR0_SIZE - 0xA000 + hCPU->gpr[4]); gx2WriteGather_submitU32AsBE(mmCB_COLOR0_SIZE - 0xA000 + hCPU->gpr[4]);
gx2WriteGather_submitU32AsBE((uint32)colorBufferBE->reg_size); gx2WriteGather_submitU32AsBE((uint32)colorBufferBE->reg_size);
cemu_assert_debug(tileMode != Latte::E_GX2TILEMODE::TM_LINEAR_SPECIAL);
// set mmCB_COLOR*_VIEW // set mmCB_COLOR*_VIEW
gx2WriteGather_submit( gx2WriteGather_submit(
pm4HeaderType3(IT_SET_CONTEXT_REG, 2), pm4HeaderType3(IT_SET_CONTEXT_REG, 2),