Logging: Add TextureReadback logtype and clean up code

This commit is contained in:
Exzap 2023-01-27 06:32:50 +01:00
parent 9bbfd33842
commit 387b712959
10 changed files with 112 additions and 96 deletions

View file

@ -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())

View file

@ -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;