summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2013-12-21 20:09:49 +0800
committerChia-I Wu <olvaffe@gmail.com>2014-01-08 18:11:34 +0800
commit6642381e7513926b847d6bc10bf590e1c0c54859 (patch)
tree48b16e85c904a70eb6d9496ff38e021a922f72c7 /src
parent011fde4bf2b4337cb07ddc1af8b4398fef9b3648 (diff)
ilo: no layer offsetting on GEN7+
Even though the Ivy Bridge PRM lists some restrictions that require layer offsetting as the Sandy Bridge PRM does, it seems they are actually lifted.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/ilo/ilo_gpe_gen6.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.c b/src/gallium/drivers/ilo/ilo_gpe_gen6.c
index d4c0398a1f2..d461fe511ab 100644
--- a/src/gallium/drivers/ilo/ilo_gpe_gen6.c
+++ b/src/gallium/drivers/ilo/ilo_gpe_gen6.c
@@ -2478,7 +2478,11 @@ ilo_gpe_init_fb(const struct ilo_dev_info *dev,
fb->offset_to_layers = false;
- if (num_surfaces > 1) {
+ /*
+ * The PRMs list several restrictions when the framebuffer has more than
+ * one surface, but it seems they are lifted on GEN7+.
+ */
+ if (dev->gen < ILO_GEN(7) && num_surfaces > 1) {
const unsigned first_depth =
(first->texture->target == PIPE_TEXTURE_3D) ?
first->texture->depth0 :