From 31178db610f5e251ff4e0a9aa675c721ba70d30b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcin=20=C5=9Alusarz?= Date: Wed, 17 Mar 2021 20:27:40 +0100 Subject: [PATCH] i965: fix decode_get_bo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Similar fix to the iris one. Signed-off-by: Marcin Ślusarz Reviewed-by: Lionel Landwerlin Part-of: --- src/mesa/drivers/dri/i965/brw_batch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_batch.c b/src/mesa/drivers/dri/i965/brw_batch.c index 930f8de..2c6e80e 100644 --- a/src/mesa/drivers/dri/i965/brw_batch.c +++ b/src/mesa/drivers/dri/i965/brw_batch.c @@ -93,9 +93,9 @@ decode_get_bo(void *v_brw, bool ppgtt, uint64_t address) if (address >= bo_address && address < bo_address + bo->size) { return (struct intel_batch_decode_bo) { - .addr = address, + .addr = bo_address, .size = bo->size, - .map = brw_bo_map(brw, bo, MAP_READ) + (address - bo_address), + .map = brw_bo_map(brw, bo, MAP_READ), }; } } -- 2.7.4