From: Dave Airlie <airlied@gmail.com>
To: dri-devel@lists.freedesktop.org
Subject: [PATCH 2/4] drm/radeon/kms: fix tile_config value reported to userspace on cayman.
Date: Thu, 19 May 2011 14:14:41 +1000 [thread overview]
Message-ID: <1305778483-14402-3-git-send-email-airlied@gmail.com> (raw)
In-Reply-To: <1305778483-14402-1-git-send-email-airlied@gmail.com>
From: Dave Airlie <airlied@redhat.com>
cayman is reporting the wrong tile config value to userspace, this
causes piglit mipmap generation tests to fail.
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
drivers/gpu/drm/radeon/ni.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c
index a38d745..99f4f40 100644
--- a/drivers/gpu/drm/radeon/ni.c
+++ b/drivers/gpu/drm/radeon/ni.c
@@ -829,7 +829,7 @@ static void cayman_gpu_init(struct radeon_device *rdev)
rdev->config.cayman.tile_config |=
((mc_arb_ramcfg & NOOFBANK_MASK) >> NOOFBANK_SHIFT) << 4;
rdev->config.cayman.tile_config |=
- (gb_addr_config & PIPE_INTERLEAVE_SIZE_MASK) >> PIPE_INTERLEAVE_SIZE_SHIFT;
+ ((gb_addr_config & PIPE_INTERLEAVE_SIZE_MASK) >> PIPE_INTERLEAVE_SIZE_SHIFT) << 8;
rdev->config.cayman.tile_config |=
((gb_addr_config & ROW_SIZE_MASK) >> ROW_SIZE_SHIFT) << 12;
--
1.7.1
next prev parent reply other threads:[~2011-05-19 4:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-19 4:14 [PATCH 0/4] cayman acceleration fixes so far Dave Airlie
2011-05-19 4:14 ` [PATCH 1/4] drm/radeon/kms: fix incorrect comparison in cayman setup code Dave Airlie
2011-05-19 4:14 ` Dave Airlie [this message]
2011-05-19 4:14 ` [PATCH 3/4] drm/radeon/cayman: setup hdp to invalidate and flush when asked Dave Airlie
2011-05-19 4:14 ` [PATCH 4/4] drm/radeon/kms: add wait idle ioctl for eg->cayman Dave Airlie
2011-05-19 6:07 ` [PATCH 0/4] cayman acceleration fixes so far Alex Deucher
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=1305778483-14402-3-git-send-email-airlied@gmail.com \
--to=airlied@gmail.com \
--cc=dri-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).