[Mesa-dev] [PATCH 5/6] intel: implement create image from texture

2013-01-02 Thread Abdiel Janulgue
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

[Mesa-dev] [PATCH 5/6] intel: implement create image from texture

2012-12-14 Thread Abdiel Janulgue
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