From patchwork Sat Mar 13 12:15:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bugzilla-daemon@freedesktop.org X-Patchwork-Id: 85725 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2DCSDbg005678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 13 Mar 2010 12:28:50 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NqQPK-0001sl-Gk; Sat, 13 Mar 2010 12:25:30 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NqQPI-0001sW-Rl for dri-devel@lists.sourceforge.net; Sat, 13 Mar 2010 12:25:28 +0000 X-ACL-Warn: Received: from gabe.freedesktop.org ([131.252.210.177]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NqQPH-00023D-Da for dri-devel@lists.sourceforge.net; Sat, 13 Mar 2010 12:25:28 +0000 Received: from annarchy.freedesktop.org (annarchy.freedesktop.org [131.252.210.176]) by gabe.freedesktop.org (Postfix) with ESMTP id AE1CC9E8C4 for ; Sat, 13 Mar 2010 04:15:56 -0800 (PST) Received: by annarchy.freedesktop.org (Postfix, from userid 33) id 68F851300B8; Sat, 13 Mar 2010 04:15:56 -0800 (PST) From: bugzilla-daemon@freedesktop.org To: dri-devel@lists.sourceforge.net Subject: [Bug 27055] r600: software fallback for readpixels X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Mesa X-Bugzilla-Component: Drivers/DRI/R600 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: edwintorok@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: medium X-Bugzilla-Assigned-To: dri-devel@lists.sourceforge.net X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: MIME-Version: 1.0 Message-Id: <20100313121556.68F851300B8@annarchy.freedesktop.org> Date: Sat, 13 Mar 2010 04:15:56 -0800 (PST) X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NqQPH-00023D-Da X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 13 Mar 2010 12:28:50 +0000 (UTC) diff --git a/src/mesa/drivers/dri/radeon/radeon_pixel_read.c b/src/mesa/drivers/dri/radeon/radeon_pixel_read.c index b180c1d..943c034 100644 --- a/src/mesa/drivers/dri/radeon/radeon_pixel_read.c +++ b/src/mesa/drivers/dri/radeon/radeon_pixel_read.c @@ -68,6 +68,12 @@ static gl_format gl_format_and_type_to_mesa_format(GLenum format, GLenum type) return MESA_FORMAT_ARGB8888_REV; } break; + case GL_BGRA: + switch (type) { + case GL_UNSIGNED_INT_8_8_8_8_REV: + return MESA_FORMAT_ARGB8888; + } + break; }