diff options
author | Francisco Jerez <currojerez@riseup.net> | 2013-10-07 18:53:40 -0700 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2013-10-29 12:40:55 -0700 |
commit | 1c7dcfed7ceb9e47943d6adaacc1ca483c97fcf6 (patch) | |
tree | 2452628247d8021725a47e408c1300d4f0d63363 /src/glsl/ir_uniform.h | |
parent | e3fd31dc411c023495970ac51ce28b4d0deb80e6 (diff) |
mesa: Add support for ARB_shader_atomic_counters.
This patch implements the common support code required for the
ARB_shader_atomic_counters extension. It defines the necessary data
structures for tracking atomic counter buffer objects (from now on
"ABOs") associated with some specific context or shader program, it
implements support for binding buffers to an ABO binding point and
querying the existing atomic counters and buffers declared by GLSL
shaders.
v2: Fix extension checks. Drop unused MAX_ATOMIC_BUFFERS constant.
Acked-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/glsl/ir_uniform.h')
-rw-r--r-- | src/glsl/ir_uniform.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/ir_uniform.h b/src/glsl/ir_uniform.h index 8198c481983..13faab7c0a1 100644 --- a/src/glsl/ir_uniform.h +++ b/src/glsl/ir_uniform.h @@ -166,6 +166,13 @@ struct gl_uniform_storage { bool row_major; /** @} */ + + /** + * Index within gl_shader_program::AtomicBuffers[] of the atomic + * counter buffer this uniform is stored in, or -1 if this is not + * an atomic counter. + */ + int atomic_buffer_index; }; #ifdef __cplusplus |