i965/miptree: Prepare compressed offsets for isl based
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 3 Jul 2017 09:57:57 +0000 (12:57 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 20 Jul 2017 08:32:21 +0000 (11:32 +0300)
v2 (Jason): Simply switch to isl_surf_get_image_offset_el()

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 619b00567ed37932c1d2306ec8deed7064cf4820..3d45a7322eee680de64fa5829f5629eff103708d 100644 (file)
@@ -1477,7 +1477,7 @@ intel_miptree_get_image_offset(const struct intel_mipmap_tree *mt,
 
       const unsigned z = mt->surf.dim == ISL_SURF_DIM_3D ? slice : 0;
       slice = mt->surf.dim == ISL_SURF_DIM_3D ? 0 : slice;
-      isl_surf_get_image_offset_sa(&mt->surf, level, slice, z,
+      isl_surf_get_image_offset_el(&mt->surf, level, slice, z,
                                    &x_offset_sa, &y_offset_sa);
 
       *x = x_offset_sa;