mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12: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>(
|
auto result = texture_cache_helpers::process_framebuffer_resource_fast<sampled_image_descriptor>(
|
||||||
cmd, texptr, attr, scale, extended_dimension, encoded_remap, remap, true, force_convert);
|
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);
|
insert_texture_barrier(cmd, texptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue