i965: Fix the passthrough TCS for isolines.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 May 2016 07:29:56 +0000 (00:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Jun 2016 06:09:13 +0000 (23:09 -0700)
commita3dc99f3d48df3da1e997d95961747daed0ba6b9
tree369ba2b90e88d355b5e21b2f6155b53d46042f14
parentebb81cd6839c5b0f7094e86f846958f10791f9bd
i965: Fix the passthrough TCS for isolines.

We weren't setting up several of the uniform values for the patch
header, so we'd crash when uploading push constants.  We at least
need to initialize them to zero.  We also had the isoline parameters
reversed, so it would also render incorrectly (if it didn't crash).

Fixes a new Piglit test(*) (isoline-no-tcs), as well as crashes in
GL44-CTS.tessellation_shader.single.max_patch_vertices.

(*) https://lists.freedesktop.org/archives/piglit/2016-May/019866.html

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_tcs.c