diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2022-03-17 11:53:54 +0200 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2022-03-18 20:00:46 +0000 |
commit | 9b71ebf574d9cc09b18c5f4a389ff471208c0286 (patch) | |
tree | 50e92fc01e2188bc59d0b13b875404c5578750ca /src | |
parent | 78b826a2359138e075ed8dd32c8d38489a72fb5e (diff) |
anv: fix variable shadowing
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 83fee30e8596 ("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>
(cherry picked from commit 78acae386553d6bf07756cfb8b12ced110454c1e)
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_batch_chain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 1a7e8445102..350b9952019 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1795,8 +1795,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); } } } |