anv: use u_foreach_bit to iterate over the the view mask like we do for transition_clear_color

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28629>
This commit is contained in:
Rohan Garg 2024-04-05 16:22:40 +02:00 committed by Marge Bot
parent 5efecc9782
commit 7e5628749c
1 changed files with 1 additions and 4 deletions

View File

@ -5168,10 +5168,7 @@ void genX(CmdBeginRendering)(
}
if (is_multiview) {
uint32_t clear_view_mask = pRenderingInfo->viewMask;
while (clear_view_mask) {
int view = u_bit_scan(&clear_view_mask);
u_foreach_bit(view, gfx->view_mask) {
uint32_t level = ds_iview->vk.base_mip_level;
uint32_t layer = ds_iview->vk.base_array_layer + view;