diff options
author | Jason Ekstrand <[email protected]> | 2016-07-13 14:25:11 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-07-14 10:48:11 -0700 |
commit | 11ac1c4dbbc9fc41d163fa4d9a76bb73c3907871 (patch) | |
tree | ad8abf704210cbc56ca12a3d42afee6518638a19 | |
parent | 3db7f3458ffbec51329d66f3bed8a3d8eaf35a3d (diff) |
glsl/types: Fix function type comparison function
It was returning true if the function types have different lengths rather
than false. This was new with the SPIR-V to NIR pass and I thought I'd
fixed it a while ago but it may have gotten lost in rebasing somewhere.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Cc: "12.0" <[email protected]>
-rw-r--r-- | src/compiler/glsl_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl_types.cpp b/src/compiler/glsl_types.cpp index 066a74e5283..fa271350f5b 100644 --- a/src/compiler/glsl_types.cpp +++ b/src/compiler/glsl_types.cpp @@ -1086,7 +1086,7 @@ function_key_compare(const void *a, const void *b) const glsl_type *const key2 = (glsl_type *) b; if (key1->length != key2->length) - return 1; + return false; return memcmp(key1->fields.parameters, key2->fields.parameters, (key1->length + 1) * sizeof(*key1->fields.parameters)) == 0; |