st/mesa: Replace UsesStreams by ActiveStreamMask for GS
[mesa.git] / src / intel / compiler / brw_vec4_gs_visitor.cpp
index ce341806c7b93ebe3ca79e775f67e7cae45aac3a..58f6f1212ac0758a85480948bc212469c57b5857 100644 (file)
@@ -667,8 +667,8 @@ brw_compile_gs(const struct brw_compiler *compiler, void *log_data,
           */
          prog_data->control_data_format = GEN7_GS_CONTROL_DATA_FORMAT_GSCTL_SID;
 
-         /* We only have to emit control bits if we are using streams */
-         if (shader->info.gs.uses_streams)
+         /* We only have to emit control bits if we are using non-zero streams */
+         if (shader->info.gs.active_stream_mask != (1 << 0))
             c.control_data_bits_per_vertex = 2;
          else
             c.control_data_bits_per_vertex = 0;