radv: use device->vk.enabled_features instead of iterating twice

vk_device already has the list of enabled features, no need to iterate
twice on the pNext structs.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27276>
This commit is contained in:
Samuel Pitoiset
2024-01-25 16:15:42 +01:00
committed by Marge Bot
parent cce5920025
commit d14ecd6d89
7 changed files with 57 additions and 192 deletions
+1 -1
View File
@@ -5538,7 +5538,7 @@ radv_dst_access_flush(struct radv_cmd_buffer *cmd_buffer, VkAccessFlags2 dst_fla
flush_bits |= RADV_CMD_FLAG_INV_SCACHE;
/* Ensure the DGC meta shader can read the commands. */
if (cmd_buffer->device->uses_device_generated_commands) {
if (radv_uses_device_generated_commands(cmd_buffer->device)) {
flush_bits |= RADV_CMD_FLAG_INV_SCACHE | RADV_CMD_FLAG_INV_VCACHE;
if (cmd_buffer->device->physical_device->rad_info.gfx_level < GFX9)