mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
rsx: Reupload surface if the surface cache denies knowledge of it
Some checks are pending
Generate Translation Template / Generate Translation Template (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Waiting to run
Some checks are pending
Generate Translation Template / Generate Translation Template (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Waiting to run
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Waiting to run
This commit is contained in:
parent
5e5f82d1a2
commit
2dfbab457a
1 changed files with 14 additions and 3 deletions
|
@ -381,9 +381,20 @@ namespace rsx
|
|||
{
|
||||
if (!(surface = surface_cache.get_surface_at(ref_address)))
|
||||
{
|
||||
// Compositing op. Just ignore expiry for now
|
||||
ensure(!ref_image);
|
||||
return {};
|
||||
// Surface cache does not have our image. Two possibilities:
|
||||
// 1. It was never a real RTT, just some op like dynamic/static-copy/composite request. image_ref is null in such cases.
|
||||
// 2. It was real but probably deleted some time ago and we have a bogus pointer. Discard it in this case.
|
||||
if (!ref_image)
|
||||
{
|
||||
// Compositing op. Just ignore expiry for now
|
||||
return {};
|
||||
}
|
||||
|
||||
// We have a real image but surface cache says it doesn't exist any more. Force a reupload.
|
||||
// Normally the global samplers dirty flag should have been set to invalidate all references.
|
||||
ensure(external_subresource_desc.op == deferred_request_command::nop);
|
||||
rsx_log.warning("Renderer is holding a stale reference to a surface that no longer exists!");
|
||||
return { true, nullptr };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue