diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index 8d814bd6d4a..0c8e479cd68 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -1329,6 +1329,9 @@ intel_miptree_unmap_etc(struct intel_context *intel, uint32_t image_y; intel_miptree_get_image_offset(mt, level, slice, &image_x, &image_y); + image_x += map->x; + image_y += map->y; + uint8_t *dst = intel_region_map(intel, mt->region, map->mode) + image_y * mt->region->pitch * mt->region->cpp + image_x * mt->region->cpp; |