From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 49140] r600_state_common.c:761:r600_draw_vbo: Assertion `0' failed Date: Thu, 03 May 2012 10:16:19 +0000 Message-ID: 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 3FD1D9E7EA for ; Thu, 3 May 2012 03:16:19 -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=49140 --- Comment #6 from Vadim Girlin 2012-05-03 03:16:19 PDT --- (In reply to comment #5) > > vec3 p3 = vec3(p.x, p.y, p.z); > > float t = dot(v, p3); > > float t2 = gm1*t/v2 - g*p.w; > > r = vec4( v*t2 + p3, g * (p.w - t)); > > > > Vadim, this is really great and much appreciated. I went through the steps and > it all seems fine to me, also tested some examples and everything works great. > This also makes the advanced path in the shader work again without my quirky > workarounds in the while loop. I never really took much care with these kind of > optimisations, somehow blindly hoping that the compiler will automagically > optimise everything. I'll try to be more careful in advance. > > I'd like to put some comments in the code, like "optimised by Vadim" if that's > ok with you or perhaps should I use your real name? Thanks. Ah, yes, I forgot to set my full name in the account here. Updated now, so you can use it if you want. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.