mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 05:30:11 +01:00
glsl: fix packed varyings interface type and add default case
fixes Piglit test: arb_program_interface_query/linker/query-varyings.shader_test Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
e92c35a872
commit
266d05a3a0
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue