Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: fix intel_framebuffer_pitch_for_width for <8bpp
@ 2013-04-02 17:28 Jesse Barnes
  2013-04-02 18:08 ` Ville Syrjälä
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Barnes @ 2013-04-02 17:28 UTC (permalink / raw)
  To: intel-gfx

As Imre pointed out, this will do the wrong thing.

Reported-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_drv.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index 37f4bb3..18f0547 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -137,7 +137,7 @@ struct intel_framebuffer {
 inline static u32
 intel_framebuffer_pitch_for_width(int width, int bpp)
 {
-	u32 pitch = DIV_ROUND_UP(width * bpp, 8);
+	u32 pitch = width * DIV_ROUND_UP(bpp, 8);
 	return ALIGN(pitch, 64);
 }
 
-- 
1.7.9.5

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

end of thread, other threads:[~2013-04-02 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02 17:28 [PATCH] drm/i915: fix intel_framebuffer_pitch_for_width for <8bpp Jesse Barnes
2013-04-02 18:08 ` 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