[Mesa-dev] [Bug 98846] triangle clipping causes wrong vertex's attribute to be broadcasted for flat interpolation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 25 06:51:37 UTC 2016


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

--- Comment #1 from Ilia Mirkin <imirkin at alum.mit.edu> ---
Actually I tracked it down to this little bit in clip.h:

    void ClipSimd(const simdscalar& vPrimMask, const simdscalar& vClipMask,
PA_STATE& pa, const simdscalari& vPrimId, const simdscalari& vViewportIdx)
    {
...
        uint32_t provokingVertex = 0;
        if(pa.binTopology == TOP_TRIANGLE_FAN)
        {
            provokingVertex = this->state.frontendState.provokingVertex.triFan;
        }
        ///@todo: line topology for wireframe?

Which is ... obviously wrong. That said, I'm not sure what the right thing is,
esp in light of how the topologyProvokingVertex is selected in the FE. I leave
it to the pro's.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161125/7b457889/attachment.html>


More information about the mesa-dev mailing list