i965: Use nir->has_transform_feedback_varyings to avoid shader_prog.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
7768b802e5
commit
21585048a2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue