[Mesa-dev] [PATCH v2 03/27] i965/miptree: Use mcs_mt->qpitch for aux surfaces
Jason Ekstrand
jason at jlekstrand.net
Tue Jul 26 22:11:07 UTC 2016
At one point, we were doing this correctly. It must have gotten lost in
one of the many rebases.
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 1911eef..330291c 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -3208,6 +3208,9 @@ intel_miptree_get_aux_isl_surf(struct brw_context *brw,
return;
}
+ /* Start with a copy of the original surface. */
+ intel_miptree_get_isl_surf(brw, mt, surf);
+
/* Figure out the format and tiling of the auxiliary surface */
switch (*usage) {
case ISL_AUX_USAGE_NONE:
@@ -3294,7 +3297,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
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list