anv: fix variable shadowing

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 83fee30e85 ("anv: allow multiple command buffers in anv_queue_submit")
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15425>
This commit is contained in:
Lionel Landwerlin 2022-03-17 11:53:54 +02:00 committed by Marge Bot
parent 174d086e8c
commit 78acae3865
1 changed files with 2 additions and 2 deletions

View File

@ -1907,8 +1907,8 @@ setup_execbuf_for_cmd_buffers(struct anv_execbuf *execbuf,
__builtin_ia32_mfence();
for (uint32_t i = 0; i < num_cmd_buffers; i++) {
u_vector_foreach(bbo, &cmd_buffers[i]->seen_bbos) {
for (uint32_t i = 0; i < (*bbo)->length; i += CACHELINE_SIZE)
__builtin_ia32_clflush((*bbo)->bo->map + i);
for (uint32_t l = 0; l < (*bbo)->length; l += CACHELINE_SIZE)
__builtin_ia32_clflush((*bbo)->bo->map + l);
}
}
}