summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-07-26 09:33:23 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-08-17 14:46:22 -0700
commit3c44d9965374641e73273cd006477ee6a97e8f9f (patch)
tree218c8f5e7911b806f6e09666cdab3cfa101b06e1 /src/mesa/drivers/dri/i965/intel_mipmap_tree.c
parent67ea60db0b69b06e2621f21ba5d3c88ed10e2028 (diff)
downloadexternal_mesa3d-3c44d9965374641e73273cd006477ee6a97e8f9f.zip
external_mesa3d-3c44d9965374641e73273cd006477ee6a97e8f9f.tar.gz
external_mesa3d-3c44d9965374641e73273cd006477ee6a97e8f9f.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 1f974b3..77bb6c0 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