Mesa (main): intel/isl: Add a score for I915_FORMAT_MOD_4_TILED
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 28 20:39:43 UTC 2022
Module: Mesa
Branch: main
Commit: a53abeb7fbea35ac86d998f4c39a380e4ed454e7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a53abeb7fbea35ac86d998f4c39a380e4ed454e7
Author: Nanley Chery <nanley.g.chery at intel.com>
Date: Wed Sep 29 15:59:21 2021 -0700
intel/isl: Add a score for I915_FORMAT_MOD_4_TILED
Enables the modifier in anv.
Cc: 22.1 <mesa-stable>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14521>
---
src/intel/isl/isl_drm.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/intel/isl/isl_drm.c b/src/intel/isl/isl_drm.c
index 4e38e0e4bed..616ae4b8bb5 100644
--- a/src/intel/isl/isl_drm.c
+++ b/src/intel/isl/isl_drm.c
@@ -159,6 +159,12 @@ isl_drm_modifier_get_score(const struct intel_device_info *devinfo,
if (devinfo->verx10 >= 125)
return 0;
+ return 3;
+ case I915_FORMAT_MOD_4_TILED:
+ /* Gfx12.5 introduces Tile4. */
+ if (devinfo->verx10 < 125)
+ return 0;
+
return 3;
case I915_FORMAT_MOD_Y_TILED_CCS:
/* Gfx12's CCS layout differs from Gfx9-11. */
More information about the mesa-commit
mailing list