Follow-up from "mesa/st: Lower user clip planes for tess eval too"
The following discussion from !14662 (merged) should be addressed:
-
@imirkin started a discussion: (+4 comments) What if you bind GS, TES, then unbind GS? Will this function run on the TES to produce the lowering? (As an aside, doesn't this also need to run on VS if there is no GS/TES? Leads me to believe there's some additional oddity going on...)
I think Gallium needs a concept of a last-vertex stage, and when the last-vertex stage changes (due to the addition or removal of a shader from the pipeline), the new and old last-vertex stage should be marked dirty to trigger shader re-compilation.