mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
ddebug: implement dd_dump_launch_grid
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
bf4ecfec4b
commit
db3559da12
2 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue