diff options
author | Francisco Jerez <currojerez@riseup.net> | 2013-10-20 12:35:47 -0700 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2013-10-29 12:40:55 -0700 |
commit | 26db3b933f7fbc81d6c2bead2a8b0479a3691424 (patch) | |
tree | 217193e3025d3946565e809793508ad797497279 /src/glsl/builtin_type_macros.h | |
parent | 0bed1ab73bc8a673b4d7d590d9d39b76fd8bf797 (diff) | |
download | external_mesa3d-26db3b933f7fbc81d6c2bead2a8b0479a3691424.zip external_mesa3d-26db3b933f7fbc81d6c2bead2a8b0479a3691424.tar.gz external_mesa3d-26db3b933f7fbc81d6c2bead2a8b0479a3691424.tar.bz2 |
glsl: Add new atomic_uint built-in GLSL type.
v2: Fix GLSL version in which the type became available. Add
contains_atomic() convenience method. Split off atomic counter
comparison error checking to a separate patch that will handle all
opaque types. Include new ir_variable fields for atomic types.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/builtin_type_macros.h')
-rw-r--r-- | src/glsl/builtin_type_macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/builtin_type_macros.h b/src/glsl/builtin_type_macros.h index fec38da..263fd83 100644 --- a/src/glsl/builtin_type_macros.h +++ b/src/glsl/builtin_type_macros.h @@ -110,6 +110,8 @@ DECL_TYPE(sampler2DRectShadow, GL_SAMPLER_2D_RECT_SHADOW, GLSL_SAMPLER DECL_TYPE(samplerExternalOES, GL_SAMPLER_EXTERNAL_OES, GLSL_SAMPLER_DIM_EXTERNAL, 0, 0, GLSL_TYPE_FLOAT) +DECL_TYPE(atomic_uint, GL_UNSIGNED_INT_ATOMIC_COUNTER, GLSL_TYPE_ATOMIC_UINT, 1, 1) + STRUCT_TYPE(gl_DepthRangeParameters) STRUCT_TYPE(gl_PointParameters) STRUCT_TYPE(gl_MaterialParameters) |