All of lore.kernel.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Subject: [Intel-gfx] [PATCH 01/10] drm/i915: Use intel_tile_height() instead of re-implementing
Date: Sat, 21 Dec 2019 14:05:34 +0200	[thread overview]
Message-ID: <20191221120543.22816-2-imre.deak@intel.com> (raw)
In-Reply-To: <20191221120543.22816-1-imre.deak@intel.com>

From: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>

intel_tile_dims() computes tile height using size and width, when there
is already a function to do just that - intel_tile_height()

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
---
 drivers/gpu/drm/i915/display/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 0ce0cea8f918..b60a15263a50 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -1998,7 +1998,7 @@ static void intel_tile_dims(const struct drm_framebuffer *fb, int color_plane,
 	unsigned int cpp = fb->format->cpp[color_plane];
 
 	*tile_width = tile_width_bytes / cpp;
-	*tile_height = intel_tile_size(to_i915(fb->dev)) / tile_width_bytes;
+	*tile_height = intel_tile_height(fb, color_plane);
 }
 
 unsigned int
-- 
2.22.0

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

  reply	other threads:[~2019-12-21 12:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-21 12:05 [Intel-gfx] [PATCH 00/10] drm/i915/tgl: Render decompression support Imre Deak
2019-12-21 12:05 ` Imre Deak [this message]
2019-12-21 12:05 ` [Intel-gfx] [PATCH 02/10] drm/i915: Move CCS stride alignment W/A inside intel_fb_stride_alignment Imre Deak
2019-12-21 12:05 ` [Intel-gfx] [PATCH 03/10] drm/i915: Extract framebufer CCS offset checks into a function Imre Deak
2019-12-21 12:05 ` [Intel-gfx] [PATCH 04/10] drm/i915: Add helpers to select correct ccs/aux planes Imre Deak
2019-12-21 12:05 ` [PATCH 05/10] drm/framebuffer: Format modifier for Intel Gen-12 render compression Imre Deak
2019-12-21 12:05   ` [Intel-gfx] " Imre Deak
2019-12-21 12:05 ` [Intel-gfx] [PATCH 06/10] drm/i915/tgl: Gen-12 render decompression Imre Deak
2019-12-21 12:05 ` [Intel-gfx] [PATCH 07/10] drm/i915/tgl: Make sure FBs have a correct CCS plane stride Imre Deak
2019-12-21 12:05 ` [Intel-gfx] [PATCH 08/10] drm/i915: Skip rotated offset adjustment for unsupported modifiers Imre Deak
2019-12-21 12:05 ` [Intel-gfx] [PATCH 09/10] drm/i915: Make sure Y slave planes get all the required state Imre Deak
2019-12-21 12:05 ` [Intel-gfx] [PATCH 10/10] drm/i915: Make sure CCS YUV semiplanar format checks work Imre Deak
2019-12-21 12:41 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/tgl: Render decompression support Patchwork
2019-12-23 11:44 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2019-12-23 12:32   ` Imre Deak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191221120543.22816-2-imre.deak@intel.com \
    --to=imre.deak@intel.com \
    --cc=dhinakaran.pandiyan@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.