mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
rsx: Minor cache fixup for cyclic references.
- Logic was broken by mipmaps PR. Do not issue a texture barrier if a temp copy is being done.
This commit is contained in:
parent
bd1bcc6be7
commit
eff4e95c99
1 changed files with 4 additions and 1 deletions
|
@ -1494,10 +1494,13 @@ namespace rsx
|
|||
auto result = texture_cache_helpers::process_framebuffer_resource_fast<sampled_image_descriptor>(
|
||||
cmd, texptr, attr, scale, extended_dimension, encoded_remap, remap, true, force_convert);
|
||||
|
||||
if (!options.skip_texture_barriers)
|
||||
if (!options.skip_texture_barriers && result.is_cyclic_reference)
|
||||
{
|
||||
// A texture barrier is only necessary when the rendertarget is going to be bound as a shader input.
|
||||
// If a temporary copy is to be made, this should not be invoked
|
||||
insert_texture_barrier(cmd, texptr);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue