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>
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),
};
}
}