Mesa (master): ilo: no layer offsetting on GEN7+

Chia-I Wu olv at kemper.freedesktop.org
Wed Jan 8 10:13:10 UTC 2014


Module: Mesa
Branch: master
Commit: 6642381e7513926b847d6bc10bf590e1c0c54859
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6642381e7513926b847d6bc10bf590e1c0c54859

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Sat Dec 21 20:09:49 2013 +0800

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.

---

 src/gallium/drivers/ilo/ilo_gpe_gen6.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.c b/src/gallium/drivers/ilo/ilo_gpe_gen6.c
index d4c0398..d461fe5 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 :




More information about the mesa-commit mailing list