summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2014-01-14 15:15:07 +0800
committerChia-I Wu <olvaffe@gmail.com>2014-01-14 15:42:53 +0800
commitc6605c51de99955c5ade7e241c38886372c1c850 (patch)
treea69aeaeacd43cbc2782fc09b281b1e8610700b95
parente90e3e39c24e0120558b33006bc5e2b69f4638b0 (diff)
ilo: use HALIGN_4 on GEN7 for depth buffers
The comment was no longer true since 6642381e7513926b847d6bc10bf590e1c0c54859.
-rw-r--r--src/gallium/drivers/ilo/ilo_resource.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c
index 3ec8839eac5..301a6f21785 100644
--- a/src/gallium/drivers/ilo/ilo_resource.c
+++ b/src/gallium/drivers/ilo/ilo_resource.c
@@ -228,17 +228,7 @@ tex_layout_init_alignments(struct tex_layout *layout)
layout->align_j = 8;
break;
default:
- /*
- * From the Ivy Bridge PRM, volume 2 part 1, page 319:
- *
- * "The 3 LSBs of both offsets (Depth Coordinate Offset Y and
- * Depth Coordinate Offset X) must be zero to ensure correct
- * alignment"
- *
- * We will make use of them and setting align_i to 8 help us meet
- * the requirement.
- */
- layout->align_i = (templ->last_level > 0) ? 8 : 4;
+ layout->align_i = 4;
layout->align_j = 4;
break;
}