nv50,nvc0: fix the max_vertices=0 case
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 29 May 2016 13:26:11 +0000 (09:26 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 29 May 2016 13:34:03 +0000 (09:34 -0400)
commit160063b110d50d528217492308bbe353af2186e8
tree09af5a01e52040c7eb263de1ec629b4f947abf3c
parentf2e7268a550e84e1f3c036effdeca3f8f9237044
nv50,nvc0: fix the max_vertices=0 case

This is apparently legal. Drop any emit/restarts, and pass a 1 to the
hardware.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
src/gallium/drivers/nouveau/nv50/nv50_program.c
src/gallium/drivers/nouveau/nvc0/nvc0_program.c