Mesa (master): ilo: 128 BPP formats can use TiledY on Gen7.5+

Chia-I Wu olv at kemper.freedesktop.org
Sat Feb 21 03:37:47 UTC 2015


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

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Fri Feb 20 15:27:14 2015 +0800

ilo: 128 BPP formats can use TiledY on Gen7.5+

The restriction is lifted.

---

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

diff --git a/src/gallium/drivers/ilo/ilo_layout.c b/src/gallium/drivers/ilo/ilo_layout.c
index 881550b..03a692f 100644
--- a/src/gallium/drivers/ilo/ilo_layout.c
+++ b/src/gallium/drivers/ilo/ilo_layout.c
@@ -508,8 +508,13 @@ layout_get_valid_tilings(const struct ilo_layout *layout,
        *
        *     "NOTE: 128BPE Format Color buffer ( render target ) MUST be
        *      either TileX or Linear."
+       *
+       * From the Haswell PRM, volume 5, page 32:
+       *
+       *     "NOTE: 128 BPP format color buffer (render target) supports
+       *      Linear, TiledX and TiledY."
        */
-      if (layout->block_size == 16)
+      if (ilo_dev_gen(params->dev) < ILO_GEN(7.5) && layout->block_size == 16)
          valid_tilings &= ~LAYOUT_TILING_Y;
 
       /*




More information about the mesa-commit mailing list