Mesa (main): nir/print: printout ACCESS_STREAM_CACHE_POLICY
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Dec 5 13:55:38 UTC 2021
Module: Mesa
Branch: main
Commit: 54489b3c09772d2a410b2f79b00304b0b731d1fc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=54489b3c09772d2a410b2f79b00304b0b731d1fc
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Wed Nov 10 11:25:05 2021 +0200
nir/print: printout ACCESS_STREAM_CACHE_POLICY
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13718>
---
src/compiler/nir/nir_print.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c
index d589d8ed152..457cddd19c1 100644
--- a/src/compiler/nir/nir_print.c
+++ b/src/compiler/nir/nir_print.c
@@ -506,7 +506,10 @@ print_var_decl(nir_variable *var, print_state *state)
const char *const ronly = (access & ACCESS_NON_WRITEABLE) ? "readonly " : "";
const char *const wonly = (access & ACCESS_NON_READABLE) ? "writeonly " : "";
const char *const reorder = (access & ACCESS_CAN_REORDER) ? "reorderable " : "";
- fprintf(fp, "%s%s%s%s%s%s", coher, volat, restr, ronly, wonly, reorder);
+ const char *const stream_cache_policy = (access & ACCESS_STREAM_CACHE_POLICY) ?
+ "stream-cache-policy " : "";
+ fprintf(fp, "%s%s%s%s%s%s%s", coher, volat, restr, ronly, wonly, reorder,
+ stream_cache_policy);
if (glsl_get_base_type(glsl_without_array(var->type)) == GLSL_TYPE_IMAGE) {
fprintf(fp, "%s ", util_format_short_name(var->data.image.format));
More information about the mesa-commit
mailing list