ddebug: implement dd_dump_launch_grid
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 8 May 2017 11:29:50 +0000 (13:29 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 10 May 2017 06:58:37 +0000 (08:58 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/ddebug/dd_context.c
src/gallium/drivers/ddebug/dd_draw.c

index 723e90e0fa53d135c332ad402de1951b794f2c88..854ff51c6408fb4b61a08671f9b60579aea3f8a8 100644 (file)
@@ -353,6 +353,8 @@ dd_context_create_compute_state(struct pipe_context *_pipe,
       return NULL;
    hstate->cso = pipe->create_compute_state(pipe, state);
 
+   hstate->state.shader.type = state->ir_type;
+
    if (state->ir_type == PIPE_SHADER_IR_TGSI)
       hstate->state.shader.tokens = tgsi_dup_tokens(state->prog);
 
index 291ce89a8dbb3ce935c768b8b36d3906af210471..63f115727b7402be4cc0b6386a9532a41ec8ff99 100644 (file)
@@ -373,7 +373,11 @@ static void
 dd_dump_launch_grid(struct dd_draw_state *dstate, struct pipe_grid_info *info, FILE *f)
 {
    fprintf(f, "%s:\n", __func__+8);
-   /* TODO */
+   DUMP(grid_info, info);
+   fprintf(f, "\n");
+
+   dd_dump_shader(dstate, PIPE_SHADER_COMPUTE, f);
+   fprintf(f, "\n");
 }
 
 static void