[Mesa-dev] [PATCH 3/7] i965/gs: Set static_vertex_count unconditionally on GEN8+
Jason Ekstrand
jason at jlekstrand.net
Tue Oct 20 18:10:18 PDT 2015
We always have NIR, so there's no reason for the check.
---
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 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);
}
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list