From patchwork Thu Feb 10 19:51:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 547361 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1AJpv2O031701 for ; Thu, 10 Feb 2011 19:52:24 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 30A089E946 for ; Thu, 10 Feb 2011 11:51:57 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-vx0-f177.google.com (mail-vx0-f177.google.com [209.85.220.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 873BB9E7F8 for ; Thu, 10 Feb 2011 11:51:44 -0800 (PST) Received: by vxd2 with SMTP id 2so882125vxd.36 for ; Thu, 10 Feb 2011 11:51:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=nOdMApODQsAlGNNTjJA7bHW6G1lA4A6Abd06x8eBjyw=; b=H94pw9YJADMOZYPqyKup4MIhkaZ3Z74kP3AY925eRBzWcBSt0vjmQNhA9NZnggoXyi EmZhpJ0ge8YMf1muHtSaYK3EQiAS4pS4yQ4RdZ9yt/elnn/tAT+hk4eCuoAKCKbLqHtu ZdcIu0VYllsj0WOUpD4LuBvn99BkNg+uxXg4Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=X0ypw2clibwu4ynv4Sm76bYE27myOXRDxp/BluQhaEmgL63YfhL7bnOqEZwmhYekmO vb9AZghzGt2Xm/nMe/kIXO3XSHOrhdLQbGof1UX1O2PCf5e9pYflHSRAWwS+p0ixyQKm 5EIqSJHuzzFRDn4UKXjLwKNJG4YGEgCIqi+Bg= Received: by 10.220.91.198 with SMTP id o6mr5913635vcm.22.1297367502955; Thu, 10 Feb 2011 11:51:42 -0800 (PST) Received: from localhost.localdomain (static-74-96-105-7.washdc.fios.verizon.net [74.96.105.7]) by mx.google.com with ESMTPS id v26sm203500vcr.13.2011.02.10.11.51.41 (version=SSLv3 cipher=OTHER); Thu, 10 Feb 2011 11:51:42 -0800 (PST) From: Alex Deucher To: airlied@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/radeon/kms: use linear aligned for 6xx/7xx bo blits Date: Thu, 10 Feb 2011 14:51:33 -0500 Message-Id: <1297367494-1923-1-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.1.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 10 Feb 2011 19:52:24 +0000 (UTC) diff --git a/drivers/gpu/drm/radeon/r600_blit_kms.c b/drivers/gpu/drm/radeon/r600_blit_kms.c index 86e5aa0..3cc0537 100644 --- a/drivers/gpu/drm/radeon/r600_blit_kms.c +++ b/drivers/gpu/drm/radeon/r600_blit_kms.c @@ -54,7 +54,7 @@ set_render_target(struct radeon_device *rdev, int format, if (h < 8) h = 8; - cb_color_info = ((format << 2) | (1 << 27)); + cb_color_info = ((format << 2) | (1 << 27) | (1 << 8)); pitch = (w / 8) - 1; slice = ((w * h) / 64) - 1; @@ -199,7 +199,7 @@ set_tex_resource(struct radeon_device *rdev, if (h < 1) h = 1; - sq_tex_resource_word0 = (1 << 0); + sq_tex_resource_word0 = (1 << 0) | (1 << 3); sq_tex_resource_word0 |= ((((pitch >> 3) - 1) << 8) | ((w - 1) << 19));