summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-09-19 20:59:17 -0400
committerIlia Mirkin <[email protected]>2016-01-29 21:05:46 -0500
commit9d6f9ccf6b7ca7c9d1ac40354d6ae47c130e2024 (patch)
treeb6b0ad9f8e85e0f85355bda36b422919385ce41c /src/mesa/program
parent0fddb677e6e8261fc7a12652224698838ac10b22 (diff)
st/mesa: add atomic counter support
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index c9c30449734..f89ca891ac7 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2295,6 +2295,10 @@ add_uniform_to_shader::visit_field(const glsl_type *type, const char *name,
(void) row_major;
+ /* atomics don't get real storage */
+ if (type->contains_atomic())
+ return;
+
if (type->is_vector() || type->is_scalar()) {
size = type->vector_elements;
if (type->is_double())