diff options
author | Fabian Bieler <fabianbieler@fastmail.fm> | 2014-03-05 13:43:17 +0100 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-07-23 00:59:26 +0200 |
commit | 1009b3311febe3909e82d4b5be38ceecad6afcc1 (patch) | |
tree | c5efbaf2e95c6656617e3b4efd2b3bb8372d53fc /src/glsl/glsl_types.h | |
parent | 1036b024d4c8ce2376ac41219dfda01d5a59b3ef (diff) | |
download | external_mesa3d-1009b3311febe3909e82d4b5be38ceecad6afcc1.zip external_mesa3d-1009b3311febe3909e82d4b5be38ceecad6afcc1.tar.gz external_mesa3d-1009b3311febe3909e82d4b5be38ceecad6afcc1.tar.bz2 |
glsl: add the patch in/out qualifier (v2)
v2: Dropped some unrelated reordering in glsl_parser.yy as Ken suggested.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/glsl_types.h')
-rw-r--r-- | src/glsl/glsl_types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index 93a1d25..dff6a9a 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.h @@ -752,6 +752,12 @@ struct glsl_struct_field { unsigned matrix_layout:2; /** + * For interface blocks, 1 if this variable is a per-patch input or output + * (as in ir_variable::patch). 0 otherwise. + */ + unsigned patch:1; + + /** * For interface blocks, it has a value if this variable uses multiple vertex * streams (as in ir_variable::stream). -1 otherwise. */ |