mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
radv: only flush scalar cache for SSBO writes with ACO on GFX8+
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
This commit is contained in:
parent
79ce6c1b33
commit
21f67a3bdc
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue