From: bugzilla-daemon@freedesktop.org Subject: [Bug 41263] [r600g] glCopyTexImage2D selects a texture format that involves fallback to software Date: Wed, 28 Sep 2011 10:07:53 -0700 (PDT) Message-ID: <20110928170753.E67DA130173@annarchy.freedesktop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from annarchy.freedesktop.org (annarchy.freedesktop.org [131.252.210.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C0D09E9F7 for ; Wed, 28 Sep 2011 10:07:54 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org https://bugs.freedesktop.org/show_bug.cgi?id=41263 --- Comment #2 from Simon Farnsworth 2011-09-28 10:07:53 PDT --- I think it may be core Mesa at fault. main/teximage.c:2779 gl_format texFormat = _mesa_choose_texture_format(ctx, texObj, target, level, internalFormat, GL_NONE, GL_NONE); is called when internalFormat is GL_RGB. Gallium, not unreasonably, treats this as "choose a nice fast GL_RGB style format", and chooses a reversed format to that of the source. The result is a slow software copy, not a fast hardware copy. So, two possibilities present themselves to me: 1) Gallium should learn to do swizzled hardware blits with a textured quad. 2) Core Mesa should give Gallium more information about the source, so that it can choose a matching format if possible. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.