From a55cc061fd08a5d7a02e27accdeca98193fa2468 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 23 Mar 2022 11:10:08 +0200 Subject: [PATCH] iris: don't synchronize BO for batch decoding We don't need to go to the kernel to synchronize the BO we want to decode with INTEL_DEBUG=bat, mostly because we'll decode what was written by the driver in the batch. This also works around an issue in the simulation environment. Signed-off-by: Lionel Landwerlin Fixes: 9ac81f189050 ("iris: decoder fixes") Reviewed-by: Kenneth Graunke Part-of: --- src/gallium/drivers/iris/iris_batch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index 8b7a325..6e6b220 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -143,7 +143,7 @@ decode_get_bo(void *v_batch, bool ppgtt, uint64_t address) return (struct intel_batch_decode_bo) { .addr = bo_address, .size = bo->size, - .map = iris_bo_map(batch->dbg, bo, MAP_READ), + .map = iris_bo_map(batch->dbg, bo, MAP_READ | MAP_ASYNC), }; } } -- 2.7.4