diff options
author | Marek Olšák <[email protected]> | 2013-07-30 22:29:12 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-07-30 23:31:22 +0200 |
commit | c84e8d039ec9c7532b25757012aa3828f4f8a70d (patch) | |
tree | e54e3e1d7d28b3f129e83b69775e25f7bdda76a2 /src | |
parent | c40f8d087a30d4a2cc452a64e4567bea9ffdb3c5 (diff) |
gallium/postprocessing: fix shader parsing
tokens was converted to a pointer, which made the Elements macro return 1.
Broken by e87fc11cac696881469a57955af2ac7b4929a2c7.
Cc: [email protected]
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/postprocess/pp_run.c | 4 |
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; } |