i965/gs: Set static_vertex_count unconditionally on GEN8+
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 20 Oct 2015 23:46:50 +0000 (16:46 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 21 Oct 2015 21:20:32 +0000 (14:20 -0700)
We always have NIR, so there's no reason for the check.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_gs.c

index 10a7f28fdab876c252c691fa995966c84540a816..02f506de3b6ff265c51e327be5b6f67ec720476f 100644 (file)
@@ -96,7 +96,7 @@ brw_codegen_gs_prog(struct brw_context *brw,
                                &c.prog_data.base.base, false);
 
    if (brw->gen >= 8) {
-      c.prog_data.static_vertex_count = !gp->program.Base.nir ? -1 :
+      c.prog_data.static_vertex_count =
          nir_gs_count_vertices(gp->program.Base.nir);
    }