aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_print.c
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2019-05-31 19:03:48 +0200
committerConnor Abbott <[email protected]>2019-06-19 14:08:28 +0200
commitc813c5776d0926527d9fcd44827811ccb7551154 (patch)
tree78e2146d5742f06c98dcb5f2382affcfc07b0960 /src/compiler/nir/nir_print.c
parent75063fbac522bcbc2e009c292d666e5aadc2d1f1 (diff)
nir: Add reorderable memory access enum
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_print.c')
-rw-r--r--src/compiler/nir/nir_print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index 6dac4eb5f5c..6b5e7395221 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -448,7 +448,8 @@ print_var_decl(nir_variable *var, print_state *state)
const char *const restr = (access & ACCESS_RESTRICT) ? "restrict " : "";
const char *const ronly = (access & ACCESS_NON_WRITEABLE) ? "readonly " : "";
const char *const wonly = (access & ACCESS_NON_READABLE) ? "writeonly " : "";
- fprintf(fp, "%s%s%s%s%s", coher, volat, restr, ronly, wonly);
+ const char *const reorder = (access & ACCESS_CAN_REORDER) ? "reorderable " : "";
+ fprintf(fp, "%s%s%s%s%s%s", coher, volat, restr, ronly, wonly, reorder);
#define FORMAT_CASE(x) case x: fprintf(stderr, #x " "); break
switch (var->data.image.format) {