i965/miptree: Use mcs_mt->qpitch for aux surfaces
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 Jul 2016 16:33:23 +0000 (09:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Aug 2016 21:46:22 +0000 (14:46 -0700)
At one point, we were doing this correctly.  It must have gotten lost in
one of the many rebases.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 1f974b3c11a161c1ac4f97189d7b07ec6732362a..77bb6c0341fa305ca7254a15d4538cc4e0ab8f9a 100644 (file)
@@ -3277,7 +3277,8 @@ intel_miptree_get_aux_isl_surf(struct brw_context *brw,
     * in elements of the primary color surface so we have to divide by the
     * compression block height.
     */
-   surf->array_pitch_el_rows = mt->qpitch / isl_format_get_layout(surf->format)->bh;
+   surf->array_pitch_el_rows =
+      mt->mcs_mt->qpitch / isl_format_get_layout(surf->format)->bh;
 }
 
 union isl_color_value