i965: fix decode_get_bo

Similar fix to the iris one.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9707>
This commit is contained in:
Marcin Ślusarz
2021-03-17 20:27:40 +01:00
committed by Marge Bot
parent f33852e268
commit 31178db610
+2 -2
View File
@@ -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),
};
}
}