aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-08 15:59:56 -0700
committerJason Ekstrand <[email protected]>2015-10-19 08:47:03 -0700
commit16619477bc800d32b5bf2f38dd544960cf66c284 (patch)
tree561532a5ba668a0712c81541fad5a541d39245af /src/glsl
parent5d4bc5ec1339fcdafae957e3473f3c2c9931bb23 (diff)
mesa: Move gl_frag_depth_layout from mtypes.h to shader_enums.h
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/shader_enums.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/glsl/nir/shader_enums.h b/src/glsl/nir/shader_enums.h
index 77638ba4e34..d1cf7ca04cc 100644
--- a/src/glsl/nir/shader_enums.h
+++ b/src/glsl/nir/shader_enums.h
@@ -480,4 +480,21 @@ const char * gl_frag_result_name(gl_frag_result result);
#define FRAG_RESULT_MAX (FRAG_RESULT_DATA0 + MAX_DRAW_BUFFERS)
+/**
+ * \brief Layout qualifiers for gl_FragDepth.
+ *
+ * Extension AMD_conservative_depth allows gl_FragDepth to be redeclared with
+ * a layout qualifier.
+ *
+ * \see enum ir_depth_layout
+ */
+enum gl_frag_depth_layout
+{
+ FRAG_DEPTH_LAYOUT_NONE, /**< No layout is specified. */
+ FRAG_DEPTH_LAYOUT_ANY,
+ FRAG_DEPTH_LAYOUT_GREATER,
+ FRAG_DEPTH_LAYOUT_LESS,
+ FRAG_DEPTH_LAYOUT_UNCHANGED
+};
+
#endif /* SHADER_ENUMS_H */