readd vram invalidation through display capture
also remove stray printf
This commit is contained in:
parent
e311eea1c5
commit
7081c2de65
|
@ -1178,7 +1178,6 @@ NonStupidBitField<Size/VRAMDirtyGranularity> VRAMTrackingSet<Size, MappingGranul
|
|||
{
|
||||
if (currentMappings[i] != Mapping[i])
|
||||
{
|
||||
printf("remapped %x %x\n", currentMappings[i], Mapping[i]);
|
||||
result |= NonStupidBitField<Size/VRAMDirtyGranularity>(i*VRAMBitsPerMapping, VRAMBitsPerMapping);
|
||||
banksToBeZeroed |= currentMappings[i];
|
||||
Mapping[i] = currentMappings[i];
|
||||
|
|
|
@ -372,9 +372,6 @@ void GPU2D_Soft::DoCapture(u32 line, u32 width)
|
|||
u16* dst = (u16*)GPU::VRAM[dstvram];
|
||||
u32 dstaddr = (((CaptureCnt >> 18) & 0x3) << 14) + (line * width);
|
||||
|
||||
static_assert(GPU::VRAMDirtyGranularity == 512);
|
||||
GPU::VRAMDirty[dstvram][(dstaddr & 0x1FFFF) / GPU::VRAMDirtyGranularity] = true;
|
||||
|
||||
// TODO: handle 3D in accelerated mode!!
|
||||
|
||||
u32* srcA;
|
||||
|
@ -467,6 +464,9 @@ void GPU2D_Soft::DoCapture(u32 line, u32 width)
|
|||
dstaddr &= 0xFFFF;
|
||||
srcBaddr &= 0xFFFF;
|
||||
|
||||
static_assert(GPU::VRAMDirtyGranularity == 512);
|
||||
GPU::VRAMDirty[dstvram][(dstaddr * 2) / GPU::VRAMDirtyGranularity] = true;
|
||||
|
||||
switch ((CaptureCnt >> 29) & 0x3)
|
||||
{
|
||||
case 0: // source A
|
||||
|
|
Loading…
Reference in New Issue