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:
kd-11 2019-10-17 23:30:49 +03:00 committed by kd-11
parent bd1bcc6be7
commit eff4e95c99

View File

@ -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;
}
}