From 8e8b527b27b5b31f88e85e9878652a11c7fa5ca4 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 20 Oct 2015 16:46:50 -0700 Subject: [PATCH] i965/gs: Set static_vertex_count unconditionally on GEN8+ We always have NIR, so there's no reason for the check. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_gs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c index 10a7f28fdab..02f506de3b6 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.c +++ b/src/mesa/drivers/dri/i965/brw_gs.c @@ -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); } -- 2.30.2