summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-20 16:46:50 -0700
committerJason Ekstrand <[email protected]>2015-10-21 14:20:32 -0700
commit8e8b527b27b5b31f88e85e9878652a11c7fa5ca4 (patch)
tree360e3488363098986ef7cbf60726748e024e3b45
parent2686477d3757de50c31aa193bde8ad57fe539e44 (diff)
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 <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_gs.c2
1 files changed, 1 insertions, 1 deletions
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);
}