[Bug 84677] Triangle disappears with glPolygonMode GL_LINE
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Oct 22 11:06:22 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=84677
Neil Roberts <neil at linux.intel.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |neil at linux.intel.com
--- Comment #3 from Neil Roberts <neil at linux.intel.com> ---
gl_VertexID is implemented by adding in an extra vertex attribute in
brw_emit_vertices. It has a special source which says to set the value of one
of the components to the vertex ID. However the problem seems to be that when
you set the polygon mode to something other than fill then that same function
also sneaks in another attribute to upload the edge flags. This gets added
before the attribute for the vertex ID so I think it is no longer in the
correct register when the vertex shader tries to read it.
A comment in the function says that the attribute for the edge flags has to be
the last one. I guess that implies the order of these attributes should be
swapped around. Indeed it seems to fix the bug if I just swap them over.
However I'm not confident whether the edge flags are actually being uploaded
correctly because I've only tested it with a single triangle and it could be
reading the edge flags from the wrong attribute and it just coincidentally
looks ok.
There is a warning in the gen8 version of the function (gen8_emit_vertices)
that says something about needing to reorder the attributes when VID is used
with edge flags. This was added by Ken so maybe he has some idea about what
needs to be done here.
I will try experimenting with more complex geometry tomorrow to determine if
the edge flags are working correctly when the order is swapped.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20141022/2effa1ed/attachment.html>
More information about the intel-3d-bugs
mailing list