From: Jason Ekstrand Date: Tue, 20 Oct 2015 23:46:50 +0000 (-0700) Subject: i965/gs: Set static_vertex_count unconditionally on GEN8+ X-Git-Tag: upstream/17.1.0~15162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e8b527b27b5b31f88e85e9878652a11c7fa5ca4;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c index 10a7f28..02f506d 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); }