summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2016-06-08 11:28:12 -0700
committerAnuj Phogat <[email protected]>2016-06-09 15:50:07 -0700
commit73a54e4892331ca21cb49f4737b27d1c12401681 (patch)
treefab5c4312ffc68aa83446f578a45712c40311410
parent46c89678135abda117ebc962cacad3384abb30dc (diff)
i965/gen9: Don't change halign and valign to fit in fast copy blit
An update in graphics specs has deleted the halign and valign fields from XY_FAST_COPY_BLT command. See mesa commit 97f0f91. Cc: Ben Widawsky <[email protected]> Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Ben Widawsky <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_tex_layout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c
index a2948293a62..4618bc02fab 100644
--- a/src/mesa/drivers/dri/i965/brw_tex_layout.c
+++ b/src/mesa/drivers/dri/i965/brw_tex_layout.c
@@ -763,10 +763,8 @@ intel_miptree_set_alignment(struct brw_context *brw,
mt->halign = 8;
mt->valign = brw->gen >= 7 ? 8 : 4;
} else if (brw->gen >= 9 && mt->tr_mode != INTEL_MIPTREE_TRMODE_NONE) {
- /* XY_FAST_COPY_BLT doesn't support horizontal alignment < 32 or
- * vertical alignment < 64. */
- mt->halign = MAX2(tr_mode_horizontal_texture_alignment(mt), 32);
- mt->valign = MAX2(tr_mode_vertical_texture_alignment(mt), 64);
+ mt->halign = tr_mode_horizontal_texture_alignment(mt);
+ mt->valign = tr_mode_vertical_texture_alignment(mt);
} else {
mt->halign =
intel_horizontal_texture_alignment_unit(brw, mt, layout_flags);