summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-07-26 09:33:23 -0700
committerJason Ekstrand <[email protected]>2016-08-17 14:46:22 -0700
commit3c44d9965374641e73273cd006477ee6a97e8f9f (patch)
tree218c8f5e7911b806f6e09666cdab3cfa101b06e1 /src/mesa
parent67ea60db0b69b06e2621f21ba5d3c88ed10e2028 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-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 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