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>
#if GFX_VER >= 11
bool has_color_att = false;
for (uint32_t i = 0; i < gfx->color_att_count; i++) {
- if (pRenderingInfo->pColorAttachments[i].imageView != VK_NULL_HANDLE)
+ if (pRenderingInfo->pColorAttachments[i].imageView != VK_NULL_HANDLE) {
has_color_att = true;
+ break;
+ }
}
if (has_color_att) {
/* The PIPE_CONTROL command description says: