summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/postprocess/pp_run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/postprocess/pp_run.c')
-rw-r--r--src/gallium/auxiliary/postprocess/pp_run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_run.c b/src/gallium/auxiliary/postprocess/pp_run.c
index 0d95c72946f..7c0f85cb357 100644
--- a/src/gallium/auxiliary/postprocess/pp_run.c
+++ b/src/gallium/auxiliary/postprocess/pp_run.c
@@ -218,8 +218,8 @@ pp_tgsi_to_state(struct pipe_context *pipe, const char *text, bool isvs,
return NULL;
}
- if (tgsi_text_translate(text, tokens, Elements(tokens)) == FALSE) {
- pp_debug("Failed to translate %s\n", name);
+ if (tgsi_text_translate(text, tokens, PP_MAX_TOKENS) == FALSE) {
+ _debug_printf("pp: Failed to translate a shader for %s\n", name);
return NULL;
}