projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e92c35a
)
glsl: fix packed varyings interface type and add default case
author
Tapani Pälli
<tapani.palli@intel.com>
Fri, 25 Sep 2015 06:56:39 +0000
(09:56 +0300)
committer
Tapani Pälli
<tapani.palli@intel.com>
Fri, 25 Sep 2015 09:19:36 +0000
(12:19 +0300)
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>
src/glsl/linker.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/linker.cpp
b/src/glsl/linker.cpp
index 9d419ac9d39c04d65e1061ec87f613bc729f69da..75396fb39369427e4b8e6e2ba2b5fccfa999b120 100644
(file)
--- 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,