nvc0: bind a fake tess control program when there isn't one available
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 26 Jul 2015 04:56:34 +0000 (00:56 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 17 Aug 2015 05:01:02 +0000 (01:01 -0400)
commit884b4df3b6f3980bb75f20fd256f9e2cca4d9403
tree5098a788c27362b064e47d07640693401212072b
parentf13073b7755e78306975a24f3286ff5a9c910a47
nvc0: bind a fake tess control program when there isn't one available

Apparently this is necessary in order for tess factors to work in a tess
eval program without a tess control program bound. Probably because it
uses the fake program's shader header to work out the number of patch
constants.

Fixes vs-tes-tessinner-tessouter-inputs

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_context.c
src/gallium/drivers/nouveau/nvc0/nvc0_context.h
src/gallium/drivers/nouveau/nvc0/nvc0_program.c
src/gallium/drivers/nouveau/nvc0/nvc0_shader_state.c