<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Line rendering broken in Dolphin when using gl_ClipDistance"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97232#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Line rendering broken in Dolphin when using gl_ClipDistance"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97232">bug 97232</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>Curiously, with the below patch on top of what's in the dolphin pr, that still
fails on i965/snb, and still passes with llvmpipe.
diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp
b/Source/Core/VideoCommon/GeometryShaderGen.cpp
index 4d90e6f..3cbe9ce 100644
--- a/Source/Core/VideoCommon/GeometryShaderGen.cpp
+++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp
@@ -311,6 +311,9 @@ static void EmitVertex(ShaderCode& out, const
geometry_shader_uid_data* uid_data
if (ApiType == APIType::OpenGL)
{
+ if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
+ out.Write("\tgl_ClipDistance[0] = %s.clipDist;\n", vertex);
+
out.Write("\tgl_Position = %s.pos;\n", vertex);
AssignVSOutputMembers(out, "ps", vertex, uid_data->numTexGens,
uid_data->pixel_lighting);
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>