i965/miptree: Set level_x/h in create_for_dri_image
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 12 Jun 2017 17:38:48 +0000 (10:38 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Jul 2017 04:15:46 +0000 (21:15 -0700)
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 077e2ab8e41553f597cac724ee6bcf6600408137..0d989d5b0639bebed0a87e7e3a1314af2a436193 100644 (file)
@@ -1077,6 +1077,8 @@ intel_miptree_create_for_dri_image(struct brw_context *brw,
       return NULL;
 
    mt->target = target;
+   mt->level[0].level_x = image->tile_x;
+   mt->level[0].level_y = image->tile_y;
    mt->level[0].slice[0].x_offset = image->tile_x;
    mt->level[0].slice[0].y_offset = image->tile_y;
    mt->total_width += image->tile_x;