summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_search.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-17 11:04:49 -0700
committerJason Ekstrand <[email protected]>2016-03-23 16:27:55 -0700
commit3a7cb6534c3f82482c05f6a6813308cf2cad131f (patch)
treeb7a677d183d4674e76ad753e874913a472952dc1 /src/compiler/nir/nir_search.h
parenta6f25fa7d77cbbce113b92690dc43ed2ed9a0211 (diff)
nir/algebraic: Allow for flagging operations as being inexact
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_search.h')
-rw-r--r--src/compiler/nir/nir_search.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_search.h b/src/compiler/nir/nir_search.h
index 321d6d00355..61742f129b1 100644
--- a/src/compiler/nir/nir_search.h
+++ b/src/compiler/nir/nir_search.h
@@ -83,6 +83,12 @@ typedef struct {
typedef struct {
nir_search_value value;
+ /* When set on a search expression, the expression will only match an SSA
+ * value that does *not* have the exact bit set. If unset, the exact bit
+ * on the SSA value is ignored.
+ */
+ bool inexact;
+
nir_op opcode;
const nir_search_value *srcs[4];
} nir_search_expression;