All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Cc: Dave Airlie <airlied@linux.ie>
Subject: [PATCH 13/15] drm/i915: Fix computation of pitch for dumb bo creator
Date: Sun, 20 Mar 2011 08:58:57 +0000	[thread overview]
Message-ID: <1300611539-24791-14-git-send-email-chris@chris-wilson.co.uk> (raw)
In-Reply-To: <1300611539-24791-1-git-send-email-chris@chris-wilson.co.uk>

Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_gem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 3f6bdaf..4d0204a 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -224,7 +224,7 @@ i915_gem_dumb_create(struct drm_file *file,
 		     struct drm_mode_create_dumb *args)
 {
 	/* have to work out size/pitch and return them */
-	args->pitch = ALIGN(args->width & ((args->bpp + 1) / 8), 64);
+	args->pitch = ALIGN(args->width * ((args->bpp + 7) / 8), 64);
 	args->size = args->pitch * args->height;
 	return i915_gem_create(file, dev,
 			       args->size, &args->handle);
-- 
1.7.4.1

  parent reply	other threads:[~2011-03-20  8:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-20  8:58 drm-intel-fixes queue Chris Wilson
2011-03-20  8:58 ` [PATCH 01/15] drm/i915: Remove surplus POSTING_READs before wait_for_vblank Chris Wilson
2011-03-20  8:58 ` [PATCH 02/15] drm/i915: skip redundant operations whilst enabling pipes and planes Chris Wilson
2011-03-20  8:58 ` [PATCH 03/15] drm/i915: Prevent racy removal of request from client list Chris Wilson
2011-03-20  8:58 ` [PATCH 04/15] drm: Fix use-after-free in drm_gem_vm_close() Chris Wilson
2011-03-20  8:58 ` [PATCH 05/15] drm/i915: Re-enable self-refresh Chris Wilson
2011-03-20  8:58 ` [PATCH 06/15] drm/i915: Fix tiling corruption from pipelined fencing Chris Wilson
2011-03-20  8:58 ` [PATCH 07/15] drm/i915/dp: Correct the order of deletion for ghost eDP devices Chris Wilson
2011-03-20  8:58 ` [PATCH 08/15] drm/i915: report correct render clock frequencies on SNB Chris Wilson
2011-03-20  8:58 ` [PATCH 09/15] drm/i915: Track fence setup separately from fenced object lifetime Chris Wilson
2011-03-20  8:58 ` [PATCH 10/15] drm/i915: Invalidate fenced read domains upon flush Chris Wilson
2011-03-24 13:47   ` Ted Phelps
2011-03-24 13:52     ` Ted Phelps
2011-03-24 14:21       ` Chris Wilson
2011-03-20  8:58 ` [PATCH 11/15] drm/i915: Cleanup handling of last_fenced_seqno Chris Wilson
2011-03-20  8:58 ` [PATCH 12/15] drm/i915: Prevent fence-reuse stalls Chris Wilson
2011-03-20  8:58 ` Chris Wilson [this message]
2011-03-20  8:58 ` [PATCH 14/15] drm/i915: Disable pagefaults along execbuffer relocation fast path Chris Wilson
2011-03-20  8:58 ` [PATCH 15/15] drm/i915: Restore missing command flush before interrupt on BLT ring Chris Wilson
2011-03-20 14:22 ` drm-intel-fixes queue Jan Niehusmann
2011-03-20 14:58   ` Chris Wilson
2011-04-07  9:42     ` Zdenek Kabelac

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=1300611539-24791-14-git-send-email-chris@chris-wilson.co.uk \
    --to=chris@chris-wilson.co.uk \
    --cc=airlied@linux.ie \
    --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.