From 805c5dcd590699240953358797290646addaaf3e Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Fri, 11 Jun 2021 15:53:19 -0700 Subject: [PATCH] iris: assign bo->index to the aux map BOs too I don't see these BOs being searched for in the benchmarks I tested so I don't think this should improve anything. On the other hand, it shouldn't hurt either since it's just an extra assignment. I want to unify both places where we have this code into a single function and the lack of the bo->index assignment was the only difference between the two places. So first we make both functions the same and in the next commit we'll unify things. This should make bisecting easier in case I'm wrong. Reviewed-by: Kenneth Graunke Signed-off-by: Paulo Zanoni Part-of: --- src/gallium/drivers/iris/iris_batch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index 1d94cf86a41..d11fa2e54c8 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -520,6 +520,7 @@ add_aux_map_bos_to_batch(struct iris_batch *batch) .flags = bo->kflags, }; batch->aperture_space += bo->size; + bo->index = batch->exec_count; batch->exec_count++; } }