don't protect RTT textures vram

Fixes Spikers Battle RTT texture spurious update before use
(transitions)
This commit is contained in:
Flyinghead 2022-06-27 13:37:22 +02:00
parent b0f3e065be
commit 6a5db32d5d
5 changed files with 5 additions and 5 deletions

View File

@ -1129,7 +1129,7 @@ void DX11Renderer::readRttRenderTarget(u32 texAddress)
device->CreateShaderResourceView(texture->texture, &viewDesc, &texture->textureView.get());
texture->dirty = 0;
texture->protectVRam();
texture->unprotectVRam();
}
}
}

View File

@ -930,7 +930,7 @@ void D3DRenderer::readRttRenderTarget(u32 texAddress)
D3DTexture* texture = texCache.getRTTexture(texAddress, pvrrc.fb_W_CTRL.fb_packmode, w, h);
texture->texture = rttTexture;
texture->dirty = 0;
texture->protectVRam();
texture->unprotectVRam();
}
}
}

View File

@ -332,7 +332,7 @@ void ReadRTTBuffer()
texture_data->texID = gl.rtt.tex;
gl.rtt.tex = 0;
texture_data->dirty = 0;
texture_data->protectVRam();
texture_data->unprotectVRam();
}
gl.rtt.texAddress = ~0;
}

View File

@ -527,7 +527,7 @@ void TextureDrawer::EndRenderPass()
//memset(&vram[fb_rtt.TexAddr << 3], '\0', size);
texture->dirty = 0;
texture->protectVRam();
texture->unprotectVRam();
}
Drawer::EndRenderPass();
}

View File

@ -646,7 +646,7 @@ void OITTextureDrawer::EndFrame()
//memset(&vram[fb_rtt.TexAddr << 3], '\0', size);
texture->dirty = 0;
texture->protectVRam();
texture->unprotectVRam();
}
OITDrawer::EndFrame();
}