mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 10:18:30 +12:00
Logging: Add TextureReadback logtype and clean up code
This commit is contained in:
parent
9bbfd33842
commit
387b712959
10 changed files with 112 additions and 96 deletions
|
@ -224,7 +224,6 @@ void LatteCP_itIndirectBufferDepr(uint32 nWords)
|
|||
uint32 physicalAddressHigh = readU32(); // unused
|
||||
uint32 sizeInDWords = readU32();
|
||||
uint32 displayListSize = sizeInDWords * 4;
|
||||
cemu_assert_debug(displayListSize >= 4);
|
||||
DrawPassContext drawPassCtx;
|
||||
LatteCP_processCommandBuffer(memory_getPointerFromPhysicalOffset(physicalAddress), displayListSize, drawPassCtx);
|
||||
if (drawPassCtx.isWithinDrawPass())
|
||||
|
|
|
@ -746,6 +746,8 @@ void LatteTextureLoader_writeReadbackTextureToMemory(LatteTextureDefinition* tex
|
|||
return;
|
||||
}
|
||||
|
||||
cemuLog_log(LogType::TextureReadback, "[WriteReadbackTex] PhysAddr {:08x} Res {}x{} Fmt {} Slice {} Mip {}", textureData->physAddress, textureData->width, textureData->height, textureData->format, sliceIndex, mipIndex);
|
||||
|
||||
if (textureData->tileMode == Latte::E_HWTILEMODE::TM_LINEAR_ALIGNED)
|
||||
{
|
||||
uint32 pitch = textureLoader.width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue