Module: Mesa
Branch: main
Commit: d4174f5f052f614a10df2ebc905aec8c4897b057
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4174f5f052f614a10df2ebc905aec8c4897b057

Author: Jordan Justen <[email protected]>
Date:   Thu Sep 16 15:40:21 2021 -0700

iris: Disable I915_FORMAT_MOD_Y_TILED_GEN12* on adl-p/display 13

Ref: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12908
Cc: mesa-stable
Fixes: e435511b580 ("intel/dev: Add device info for ADL GT2")
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12973>

---

 src/gallium/drivers/iris/iris_resource.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/iris/iris_resource.c 
b/src/gallium/drivers/iris/iris_resource.c
index db5d3bed2c6..824f3787a70 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -99,6 +99,8 @@ modifier_is_supported(const struct intel_device_info *devinfo,
    case I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC:
       if (devinfo->verx10 != 120)
          return false;
+      if (devinfo->display_ver != 12)
+         return false;
       break;
    case DRM_FORMAT_MOD_INVALID:
    default:

Reply via email to