From: bugzilla-daemon@freedesktop.org Subject: [Bug 27887] r300g: depth textures + fbo = broken glClear() Date: Tue, 4 May 2010 08:22:25 -0700 (PDT) Message-ID: <20100504152225.3AED213004E@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 661D49E7E2 for ; Tue, 4 May 2010 08:22:25 -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=27887 --- Comment #1 from Wiktor Janas 2010-05-04 08:22:25 PDT --- Created an attachment (id=35412) View: https://bugs.freedesktop.org/attachment.cgi?id=35412 Review: https://bugs.freedesktop.org/review?bug=27887&attachment=35412 proposed patch Looks to me like bug in u_blitter.c The fragment shaders used by clear are generated on demand and cached. However, shader that would pass the input color to the output buffer 0 is stored at the same location as shader that would write to no output buffers (see logic at blitter_get_fs_col). Therefore, if depth-buffer-only clear is done first, subsequent color-buffer clear uses shader that generates no output. The attached patch attempts to fix this (warning: I don't know mesa/gallium well, just trying to get my app working). The test case still has issues (sometimes fails to redraw the window when resized), but at least something shows up. Also, the same test case renders garbage on llvmpipe (patched or not). -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.