i965: Use nir->has_transform_feedback_varyings to avoid shader_prog.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 2 Oct 2015 23:45:09 +0000 (16:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 4 Oct 2015 21:00:01 +0000 (14:00 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp

index c673ccd137caea614a92a33d56245b0aa7fd9645..74ef7286721cb7169fb0d64cae93ceabe9fddead 100644 (file)
@@ -473,7 +473,7 @@ vec4_gs_visitor::gs_emit_vertex(int stream_id)
     * be recorded by transform feedback, we can simply discard all geometry
     * bound to these streams when transform feedback is disabled.
     */
-   if (stream_id > 0 && shader_prog->TransformFeedback.NumVarying == 0)
+   if (stream_id > 0 && !nir->info.has_transform_feedback_varyings)
       return;
 
    /* If we're outputting 32 control data bits or less, then we can wait