[Bug 97232] Line rendering broken in Dolphin when using gl_ClipDistance

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 10 03:29:17 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97232

--- Comment #5 from Ilia Mirkin <imirkin at alum.mit.edu> ---
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);
   }

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160810/1c819f4c/attachment-0001.html>


More information about the intel-3d-bugs mailing list