Fixes crash in ppgtt_lookup when the same bo is used twice
with different offsets.
It's possible to hit this with i965 and always_flush_batch=true.
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/9008>
}
if (obj->flags & EXEC_OBJECT_PINNED) {
+ if (bo->offset != obj->offset)
+ bo->gtt_mapped = false;
bo->offset = obj->offset;
} else {
if (obj->alignment != 0)