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:
committed by
Marge Bot
parent
f33852e268
commit
31178db610
@@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user