summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_context.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-06-01 00:08:55 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-06-15 12:44:44 -0700
commit1bc194cd64085d07f1aae319cb6fb3c99d69aaeb (patch)
tree8aa1943ccd6760ed32feb3502aa642b3f4da1e9e /src/mesa/drivers/dri/i965/brw_context.c
parent0be210513797d3a0245588df915b9510c201bea4 (diff)
downloadexternal_mesa3d-1bc194cd64085d07f1aae319cb6fb3c99d69aaeb.zip
external_mesa3d-1bc194cd64085d07f1aae319cb6fb3c99d69aaeb.tar.gz
external_mesa3d-1bc194cd64085d07f1aae319cb6fb3c99d69aaeb.tar.bz2
i965: Use a uniform for gl_PatchVerticesIn in the TES.
Fixes three GL44-CTS.tessellation_shader subtests: - max_patch_vertices - single.max_patch_vertices - tessellation_control_to_tessellation_evaluation.gl_PatchVerticesIn These use gl_PatchVerticesIn in the TES, but don't link against a TCS (which would allow the linker to lower it to a constant). We had no handling for the system value in the backend, so it would just assert fail. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com> Cc: mesa-stable@lists.freedesktop.org
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 49048f4..ea8e8fd 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -599,6 +599,7 @@ brw_initialize_context_constants(struct brw_context *brw)
ctx->Const.MaxClipPlanes = 8;
ctx->Const.LowerTessLevel = true;
+ ctx->Const.LowerTESPatchVerticesIn = true;
ctx->Const.PrimitiveRestartForPatches = true;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxNativeInstructions = 16 * 1024;