[Mesa-dev] [PATCH 5/6] i965/gen9: Set HALIGN_16 for all aux buffers

Ben Widawsky benjamin.widawsky at intel.com
Thu May 28 10:21:33 PDT 2015


Just like the previous patch, but for the GEN9 constraints.

Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index a1ac0cf..89030aa 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -655,6 +655,11 @@ intel_miptree_create(struct brw_context *brw,
 
    assert((layout_flags & MIPTREE_LAYOUT_DISABLE_AUX) == 0);
    assert((layout_flags & MIPTREE_LAYOUT_FOR_BO) == 0);
+
+   if (brw->gen >= 9 && num_samples > 1)
+      layout_flags |= MIPTREE_LAYOUT_FORCE_HALIGN16;
+
+
    mt = intel_miptree_create_layout(brw, target, format,
                                     first_level, last_level, width0,
                                     height0, depth0, num_samples,
-- 
2.4.2



More information about the mesa-dev mailing list