From 266d05a3a0651ac954c91aea12c870940e8a9820 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Fri, 25 Sep 2015 09:56:39 +0300 Subject: [PATCH] glsl: fix packed varyings interface type and add default case MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fixes Piglit test: arb_program_interface_query/linker/query-varyings.shader_test Signed-off-by: Tapani Pälli Reviewed-by: Ilia Mirkin --- src/glsl/linker.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 9d419ac9d39..75396fb3936 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -3319,8 +3319,12 @@ add_packed_varyings(struct gl_shader_program *shProg, int stage) switch (var->data.mode) { case ir_var_shader_in: iface = GL_PROGRAM_INPUT; + break; case ir_var_shader_out: iface = GL_PROGRAM_OUTPUT; + break; + default: + unreachable("unexpected type"); } if (!add_program_resource(shProg, iface, var, build_stageref(shProg, var->name, -- 2.30.2