anv: break out of the loop when the first color attachment is found
authorRohan Garg <rohan.garg@intel.com>
Tue, 14 Mar 2023 10:12:06 +0000 (11:12 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Mar 2023 10:52:50 +0000 (10:52 +0000)
commitbecc1c561502f595190e1f94a3dbc0211f02f8c3
tree149365495c369012d8e24102b5a44239c28cf51a
parent3bc374ca93458d8e793ad37970f9b9ff62ddf1e6
anv: break out of the loop when the first color attachment is found

Fixes: 2bd304bc ("anv: Skip the RT flush when doing depth-only rendering")
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21903>
src/intel/vulkan/genX_cmd_buffer.c