From d6edae70901dba4b96358bfc467534466060ef0a Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 21 May 2016 16:14:50 -0400 Subject: nv50/ir: fix prog info init Left over from the pre-mainline tess support. Adapt to use the new defines. Signed-off-by: Ilia Mirkin Reviewed-by: Samuel Pitoiset Cc: "11.1 11.2" --- src/gallium/drivers/nouveau/codegen/nv50_ir.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp index c95aacf48f7..35cd7217c2c 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp @@ -1170,12 +1170,10 @@ extern "C" { static void nv50_ir_init_prog_info(struct nv50_ir_prog_info *info) { -#if defined(PIPE_SHADER_HULL) && defined(PIPE_SHADER_DOMAIN) - if (info->type == PIPE_SHADER_HULL || info->type == PIPE_SHADER_DOMAIN) { + if (info->type == PIPE_SHADER_TESS_CTRL || info->type == PIPE_SHADER_TESS_EVAL) { info->prop.tp.domain = PIPE_PRIM_MAX; info->prop.tp.outputPrim = PIPE_PRIM_MAX; } -#endif if (info->type == PIPE_SHADER_GEOMETRY) { info->prop.gp.instanceCount = 1; info->prop.gp.maxVertices = 1; -- cgit v1.2.3