radv: Don't invalidate the SCACHE for image barriers.

Even ACO never uses the constant cache for images.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7875>
This commit is contained in:
Bas Nieuwenhuizen 2020-10-18 01:52:52 +02:00 committed by Marge Bot
parent 6d75186008
commit 9a3aaffeb8

View file

@ -3321,7 +3321,7 @@ radv_dst_access_flush(struct radv_cmd_buffer *cmd_buffer,
flush_bits |= RADV_CMD_FLAG_INV_VCACHE; flush_bits |= RADV_CMD_FLAG_INV_VCACHE;
/* Unlike LLVM, ACO uses SMEM for SSBOs and we have to /* Unlike LLVM, ACO uses SMEM for SSBOs and we have to
* invalidate the scalar cache. */ * invalidate the scalar cache. */
if (!cmd_buffer->device->physical_device->use_llvm) if (!cmd_buffer->device->physical_device->use_llvm && !image)
flush_bits |= RADV_CMD_FLAG_INV_SCACHE; flush_bits |= RADV_CMD_FLAG_INV_SCACHE;
if (!image_is_coherent) if (!image_is_coherent)