Reviewed-by: Ian Romanick ian.d.roman...@intel.com
On 10/01/2013 07:15 PM, Francisco Jerez wrote:
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
On 10/01/2013 07:15 PM, Francisco Jerez wrote:
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
Kenneth Graunke kenn...@whitecape.org writes:
On 10/01/2013 07:15 PM, Francisco Jerez wrote:
[...]
@@ -441,6 +442,27 @@ struct glsl_type {
}
/**
+* Return the amount of atomic counter storage required for a type.
+*/
+ unsigned atomic_size() const
+ {
+ if
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.
---
src/glsl/ast_to_hir.cpp