diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-05-21 16:14:50 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2016-05-22 11:58:22 -0400 |
commit | d6edae70901dba4b96358bfc467534466060ef0a (patch) | |
tree | f63dbe798154ffdc5d6c9847b9f097dff33ee6d6 | |
parent | 035b1097db339fb605964da62d01553a2bc25061 (diff) | |
download | external_mesa3d-d6edae70901dba4b96358bfc467534466060ef0a.zip external_mesa3d-d6edae70901dba4b96358bfc467534466060ef0a.tar.gz external_mesa3d-d6edae70901dba4b96358bfc467534466060ef0a.tar.bz2 |
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 <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp index c95aacf..35cd721 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; |