diff options
author | Connor Abbott <[email protected]> | 2019-05-31 19:03:48 +0200 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-06-19 14:08:28 +0200 |
commit | c813c5776d0926527d9fcd44827811ccb7551154 (patch) | |
tree | 78e2146d5742f06c98dcb5f2382affcfc07b0960 /src/compiler/shader_enums.h | |
parent | 75063fbac522bcbc2e009c292d666e5aadc2d1f1 (diff) |
nir: Add reorderable memory access enum
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/shader_enums.h')
-rw-r--r-- | src/compiler/shader_enums.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index 47b1ca01dd6..cf753df3791 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -725,6 +725,14 @@ enum gl_access_qualifier /** The access may use a non-uniform buffer or image index */ ACCESS_NON_UNIFORM = (1 << 5), + + /* This has the same semantics as NIR_INTRINSIC_CAN_REORDER, only to be + * used with loads. In other words, it means that the load can be + * arbitrarily reordered, or combined with other loads to the same address. + * It is implied by ACCESS_NON_WRITEABLE together with ACCESS_RESTRICT, and + * a lack of ACCESS_COHERENT and ACCESS_VOLATILE. + */ + ACCESS_CAN_REORDER = (1 << 6), }; /** |