nir/gather_info: handle emit_vertex_with_counter
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 13 Mar 2020 19:31:03 +0000 (19:31 +0000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Mar 2020 15:37:07 +0000 (15:37 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
CC: <mesa-stable@lists.freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4193>

src/compiler/nir/nir_gather_info.c

index c301742dd7a765a3a2e92eb763f737d683966f97..124f355f733028dfeb3f0b8a76b35ead1fe815a4 100644 (file)
@@ -283,6 +283,7 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader,
       /* fall through */
 
    case nir_intrinsic_emit_vertex:
+   case nir_intrinsic_emit_vertex_with_counter:
       if (nir_intrinsic_stream_id(instr) > 0)
          shader->info.gs.uses_streams = true;