projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glsl: Allow _textureCubeArrayShadow function to accept ir_texture_opcode
[mesa.git]
/
src
/
compiler
/
glsl
/
ast.h
diff --git
a/src/compiler/glsl/ast.h
b/src/compiler/glsl/ast.h
index 9b88ff51d480ac11d196f03c56830a3ab67842bc..90a35654aeb158a810456ce8f02b38f27f2f6945 100644
(file)
--- a/
src/compiler/glsl/ast.h
+++ b/
src/compiler/glsl/ast.h
@@
-626,6
+626,16
@@
struct ast_type_qualifier {
* Flag set if GL_ARB_post_depth_coverage layout qualifier is used.
*/
unsigned post_depth_coverage:1;
* Flag set if GL_ARB_post_depth_coverage layout qualifier is used.
*/
unsigned post_depth_coverage:1;
+
+ /**
+ * Flags for the layout qualifers added by ARB_fragment_shader_interlock
+ */
+
+ unsigned pixel_interlock_ordered:1;
+ unsigned pixel_interlock_unordered:1;
+ unsigned sample_interlock_ordered:1;
+ unsigned sample_interlock_unordered:1;
+
/**
* Flag set if GL_INTEL_conservartive_rasterization layout qualifier
* is used.
/**
* Flag set if GL_INTEL_conservartive_rasterization layout qualifier
* is used.
@@
-644,6
+654,11
@@
struct ast_type_qualifier {
/** \{ */
unsigned non_coherent:1;
/** \} */
/** \{ */
unsigned non_coherent:1;
/** \} */
+
+ /** \name Layout qualifiers for NV_compute_shader_derivatives */
+ /** \{ */
+ unsigned derivative_group:1;
+ /** \} */
}
/** \brief Set of flags, accessed by name. */
q;
}
/** \brief Set of flags, accessed by name. */
q;
@@
-756,6
+771,12
@@
struct ast_type_qualifier {
*/
GLenum image_format;
*/
GLenum image_format;
+ /**
+ * Arrangement of invocations used to calculate derivatives in a compute
+ * shader. From NV_compute_shader_derivatives.
+ */
+ enum gl_derivative_group derivative_group;
+
/**
* Base type of the data read from or written to this image. Only
* the following enumerants are allowed: GLSL_TYPE_UINT,
/**
* Base type of the data read from or written to this image. Only
* the following enumerants are allowed: GLSL_TYPE_UINT,
@@
-1305,6
+1326,20
@@
private:
ast_layout_expression *local_size[3];
};
ast_layout_expression *local_size[3];
};
+class ast_warnings_toggle : public ast_node {
+public:
+ ast_warnings_toggle(bool _enable)
+ : enable(_enable)
+ {
+ /* empty */
+ }
+
+ virtual ir_rvalue *hir(exec_list *instructions,
+ struct _mesa_glsl_parse_state *state);
+
+private:
+ bool enable;
+};
/*@}*/
extern void
/*@}*/
extern void