trace: Support bigger TGSI shaders.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 4 Sep 2013 13:54:31 +0000 (14:54 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 12 Sep 2013 10:24:24 +0000 (11:24 +0100)
Trivial.

src/gallium/drivers/trace/tr_dump_state.c

index e11f866b42e94bb400899e025fbf0147af43cd0d..22f1d278033235c71f6a991935de94f3899ad9ab 100644 (file)
@@ -255,7 +255,6 @@ void trace_dump_clip_state(const struct pipe_clip_state *state)
 
 void trace_dump_shader_state(const struct pipe_shader_state *state)
 {
-   static char str[8192];
    unsigned i;
 
    if (!trace_dumping_enabled_locked())
@@ -271,6 +270,7 @@ void trace_dump_shader_state(const struct pipe_shader_state *state)
 
    trace_dump_member_begin("tokens");
    if (state->tokens) {
+      static char str[64 * 1024];
       tgsi_dump_str(state->tokens, 0, str, sizeof(str));
       trace_dump_string(str);
    } else {