aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-05-27 19:07:19 +1000
committerTimothy Arceri <[email protected]>2016-05-30 15:11:47 +1000
commitaac90ba2920cf5ceb4df6dba776dd3952780e456 (patch)
tree54527553f21f4df54c65152f11ee1e324b892bd9 /src/compiler/glsl/ir.h
parent87fb5aa3e741e9b93bf09509ff14d4cbc683e482 (diff)
glsl: fix xfb_offset unsized array validation
This partially fixes CTS test: GL44-CTS.enhanced_layouts.xfb_get_program_resource_api The test now fails at a tes evaluation shader with unsized output arrays. The ARB_enhanced_layouts spec says: "It is a compile-time error to apply xfb_offset to the declaration of an unsized array." So this seems like a bug in the CTS. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir.h')
-rw-r--r--src/compiler/glsl/ir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h
index e8efd27112f..b1cfd526fef 100644
--- a/src/compiler/glsl/ir.h
+++ b/src/compiler/glsl/ir.h
@@ -2621,6 +2621,9 @@ is_gl_identifier(const char *s)
return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_';
}
+const glsl_type *
+get_varying_type(const ir_variable *var, gl_shader_stage stage);
+
extern "C" {
#endif /* __cplusplus */