diff options
author | Connor Abbott <[email protected]> | 2014-08-15 17:12:06 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-08-21 11:46:13 -0700 |
commit | 06ef6315732cf89d20a831bd5b4861550769276f (patch) | |
tree | c3daa92b9f26fece4f7a2f91171fe2a92e7109c0 | |
parent | 619505ac7c862895f63a6074540376355059a519 (diff) |
glsl/linker: pass through the is_intrinsic flag
This flag was set to true for the atomic counter intrinsics, but it
never got plumbed through the linker, so by the time it got to the
backends it would always be set to the false. The current i965 backend
code doesn't use is_intrinsic, so this should not change any existing
code, but it's useful for codepaths that want to distinguish between
intrinsics and non-intrinsics without using strcmp.
Reviewed-by: Matt Turner <[email protected]>
Signed-off-by: Connor Abbott <[email protected]>
-rw-r--r-- | src/glsl/link_functions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/link_functions.cpp b/src/glsl/link_functions.cpp index f86aec689b1..d62c16853bc 100644 --- a/src/glsl/link_functions.cpp +++ b/src/glsl/link_functions.cpp @@ -154,6 +154,8 @@ public: linked_sig->replace_parameters(&formal_parameters); + linked_sig->is_intrinsic = sig->is_intrinsic; + if (sig->is_defined) { foreach_in_list(const ir_instruction, original, &sig->body) { ir_instruction *copy = original->clone(linked, ht); |