From: Daniel Schürmann Date: Mon, 18 Nov 2019 10:15:06 +0000 (+0100) Subject: radv: only flush scalar cache for SSBO writes with ACO on GFX8+ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21f67a3bdc6027ceea6c03359ad5815b3d719863;p=mesa.git radv: only flush scalar cache for SSBO writes with ACO on GFX8+ Reviewed-by: Rhys Perry --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index efa60dcbdb8..d655f6e2313 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2866,7 +2866,8 @@ radv_dst_access_flush(struct radv_cmd_buffer *cmd_buffer, flush_bits |= RADV_CMD_FLAG_INV_VCACHE; /* Unlike LLVM, ACO uses SMEM for SSBOs and we have to * invalidate the scalar cache. */ - if (cmd_buffer->device->physical_device->use_aco) + if (cmd_buffer->device->physical_device->use_aco && + cmd_buffer->device->physical_device->rad_info.chip_class >= GFX8) flush_bits |= RADV_CMD_FLAG_INV_SCACHE; if (!image_is_coherent)