i965/miptree: Use mcs_mt->qpitch for aux surfaces

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>
This commit is contained in:
Jason Ekstrand 2016-07-26 09:33:23 -07:00
parent 67ea60db0b
commit 3c44d99653

View 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