From: Jason Ekstrand Date: Tue, 26 Jul 2016 16:33:23 +0000 (-0700) Subject: i965/miptree: Use mcs_mt->qpitch for aux surfaces X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c44d9965374641e73273cd006477ee6a97e8f9f;p=mesa.git 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 --- diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 1f974b3c11a..77bb6c0341f 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -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