ddebug: fix parsing of the pipelined mode
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 7 Jul 2017 07:52:05 +0000 (09:52 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Jul 2017 08:28:45 +0000 (10:28 +0200)
Trivial.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/ddebug/dd_screen.c

index a5d2be1402d82b94e2bfb3578267c58953df6143..14e6f6b011f7afef6115b3cc3b0f7e7ca992a0a5 100644 (file)
@@ -374,7 +374,7 @@ ddebug_screen_create(struct pipe_screen *screen)
 
       if (sscanf(option+8, "%u", &apitrace_dump_call) != 1)
          return screen;
-   } else if (!strncmp(option, "pipelined", 8)) {
+   } else if (!strncmp(option, "pipelined", 9)) {
       mode = DD_DETECT_HANGS_PIPELINED;
 
       if (sscanf(option+10, "%u", &timeout) != 1)