mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
5efecc9782
commit
7e5628749c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue