From: bugzilla-daemon@freedesktop.org Subject: [Bug 28363] [r600c, kms] shadows wrong in doom3 Date: Thu, 3 Jun 2010 12:39:00 -0700 (PDT) Message-ID: <20100603193901.0C77913011B@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 531D59E7F9 for ; Thu, 3 Jun 2010 12:39:01 -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=28363 Andre Maasikas changed: What |Removed |Added ---------------------------------------------------------------------------- Product|DRI |Mesa Version|XOrg CVS |git Component|DRM/Radeon |Mesa core AssignedTo|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop. |.org |org --- Comment #7 from Andre Maasikas 2010-06-03 12:39:00 PDT --- I looked it a while back and if i remember correctly this went like: Doom uses ext_stencil_two_side if available There's 2 back stencil states: 1 opengl 2.0 2 ext_stencil_two_side Mesa sets ctx->Stencil._BackFace to 2 if GL_STENCIL_TEST_TWO_SIDE_EXT is enabled and to 1 otherwise - this is what r600 and also intel? uses Doom3 does some stencil setup while GL_STENCIL_TEST_TWO_SIDE_EXT disabled and the driver uses wrong values then The spec is imho also inconclusive but i read it as GL_STENCIL_TEST_TWO_SIDE_EXT should be 'tested' at rendering time and you can set up backface stencil state (via glActiveStencilFaceEXT) while this enable is not (yet) set. 2 options, use ctx->Stencil.ActiveFace in driver as in stencil.c or set ctx->Stencil._BackFace also to 2 in _mesa_ActiveStencilFaceEXT() I'm setting this to core mesa for comments -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.