Save miptree level info to DRIImage, taking offsets into consideration.
In non-tile-aligned surface cases where resolving back to the original image
proves problematic due to alignment issues, copy the image to a single-level
miptree and refer to the offsets there instead to avoid orphaning
Signed
Save miptree level info to DRIImage, taking offsets into consideration.
For <= gen4 hw which doesn't support non-tile aligned offset, re-create
the mipmap tree internally before exporting the updated offsets to
avoid alignment problems.
Signed-off-by: Abdiel Janulgue
---
src/mesa/drivers/dri/int