From: Kenneth Graunke Date: Fri, 2 Oct 2015 23:45:09 +0000 (-0700) Subject: i965: Use nir->has_transform_feedback_varyings to avoid shader_prog. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21585048a2e21ea9726e7f0b9f9fd98d1105295c;p=mesa.git i965: Use nir->has_transform_feedback_varyings to avoid shader_prog. Signed-off-by: Kenneth Graunke Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp index c673ccd137c..74ef7286721 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp @@ -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