Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/display: Add support of MOD_Y_TILED during fb init
@ 2021-05-31 11:32 Sodhi, Vunny
  2021-05-31 12:29 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
  2021-05-31 14:05 ` [Intel-gfx] [PATCH] " Ville Syrjälä
  0 siblings, 2 replies; 3+ messages in thread
From: Sodhi, Vunny @ 2021-05-31 11:32 UTC (permalink / raw)
  To: intel-gfx; +Cc: Sodhi

Adding Y_TILED modifier which is needed to support DRM_FORMAT_NV12
during framebuffer initialization.

Signed-off-by: Sodhi, Vunny <vunny.sodhi@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index caf0414..a9b1b62 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -11610,8 +11610,10 @@ static int intel_framebuffer_init(struct intel_framebuffer *intel_fb,
 		if (tiling == I915_TILING_X) {
 			mode_cmd->modifier[0] = I915_FORMAT_MOD_X_TILED;
 		} else if (tiling == I915_TILING_Y) {
+			mode_cmd->modifier[0] = I915_FORMAT_MOD_Y_TILED;
+		} else {
 			drm_dbg_kms(&dev_priv->drm,
-				    "No Y tiling for legacy addfb\n");
+				    "Unsupported tiling for legacy addfb\n");
 			goto err;
 		}
 	}
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-31 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-31 11:32 [Intel-gfx] [PATCH] drm/i915/display: Add support of MOD_Y_TILED during fb init Sodhi, Vunny
2021-05-31 12:29 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2021-05-31 14:05 ` [Intel-gfx] [PATCH] " Ville Syrjälä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox