From: Kenneth Graunke Date: Wed, 1 Jun 2016 07:08:55 +0000 (-0700) Subject: i965: Use a uniform for gl_PatchVerticesIn in the TES. X-Git-Tag: upstream/17.1.0~8723 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bc194cd64085d07f1aae319cb6fb3c99d69aaeb;p=platform%2Fupstream%2Fmesa.git 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 Reviewed-by: Alejandro PiƱeiro Cc: mesa-stable@lists.freedesktop.org --- 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;