i965: Set core tessellation-related limits
authorChris Forbes <chrisf@ijw.co.nz>
Tue, 9 Sep 2014 09:22:25 +0000 (21:22 +1200)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Dec 2015 22:48:54 +0000 (14:48 -0800)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.c

index cf8c6a2080b0c4d0e2c4ad0dc0bc1e64c986ea41..d51d1018e21a97f826de24637f07a6172ee8aad6 100644 (file)
@@ -327,8 +327,8 @@ brw_initialize_context_constants(struct brw_context *brw)
 
    const bool stage_exists[MESA_SHADER_STAGES] = {
       [MESA_SHADER_VERTEX] = true,
-      [MESA_SHADER_TESS_CTRL] = false,
-      [MESA_SHADER_TESS_EVAL] = false,
+      [MESA_SHADER_TESS_CTRL] = brw->gen >= 8,
+      [MESA_SHADER_TESS_EVAL] = brw->gen >= 8,
       [MESA_SHADER_GEOMETRY] = brw->gen >= 6,
       [MESA_SHADER_FRAGMENT] = true,
       [MESA_SHADER_COMPUTE] = _mesa_extension_override_enables.ARB_compute_shader,
@@ -585,6 +585,10 @@ brw_initialize_context_constants(struct brw_context *brw)
       ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxInputComponents = 64;
       ctx->Const.Program[MESA_SHADER_GEOMETRY].MaxOutputComponents = 128;
       ctx->Const.Program[MESA_SHADER_FRAGMENT].MaxInputComponents = 128;
+      ctx->Const.Program[MESA_SHADER_TESS_CTRL].MaxInputComponents = 128;
+      ctx->Const.Program[MESA_SHADER_TESS_CTRL].MaxOutputComponents = 128;
+      ctx->Const.Program[MESA_SHADER_TESS_EVAL].MaxInputComponents = 128;
+      ctx->Const.Program[MESA_SHADER_TESS_EVAL].MaxOutputComponents = 128;
    }
 
    /* We want the GLSL compiler to emit code that uses condition codes */