glsl: Drop resize-to-MaxPatchVertices hack.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 11 Feb 2017 07:02:56 +0000 (23:02 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 13 Feb 2017 05:09:25 +0000 (21:09 -0800)
commit57dc6d80a0dab253ef8e8543810e5384b01f41f7
tree980314bfbf561becd088c6468b43a448c4d6e52b
parent1fad070f96596ab1c0d888d2e676b6425a48825b
glsl: Drop resize-to-MaxPatchVertices hack.

TCS and TES inputs without an array size are implicitly sized to
gl_MaxPatchVertices.  But TCS outputs are apparently not:

   "If no size is specified, it will be taken from the output patch size
    (gl_VerticesOut) declared in the shader."

Fixes dEQP-GLES31.functional.program_interface_query.program_output.
array_size.separable_tess_ctrl.var.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/ir.h
src/compiler/glsl/linker.cpp
src/compiler/glsl/lower_named_interface_blocks.cpp