gallium: add util_dump_query_type and use it in ddebug
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -179,22 +179,12 @@ util_dump_color_union(FILE *f, const union pipe_color_union *color)
|
||||
color->ui[0], color->ui[1], color->ui[2], color->ui[3]);
|
||||
}
|
||||
|
||||
static void
|
||||
util_dump_query(FILE *f, struct dd_query *query)
|
||||
{
|
||||
if (query->type >= PIPE_QUERY_DRIVER_SPECIFIC)
|
||||
fprintf(f, "PIPE_QUERY_DRIVER_SPECIFIC + %i",
|
||||
query->type - PIPE_QUERY_DRIVER_SPECIFIC);
|
||||
else
|
||||
fprintf(f, "%s", util_str_query_type(query->type, false));
|
||||
}
|
||||
|
||||
static void
|
||||
dd_dump_render_condition(struct dd_draw_state *dstate, FILE *f)
|
||||
{
|
||||
if (dstate->render_cond.query) {
|
||||
fprintf(f, "render condition:\n");
|
||||
DUMP_M(query, &dstate->render_cond, query);
|
||||
DUMP_M(query_type, &dstate->render_cond, query->type);
|
||||
DUMP_M(uint, &dstate->render_cond, condition);
|
||||
DUMP_M(uint, &dstate->render_cond, mode);
|
||||
fprintf(f, "\n");
|
||||
|
Reference in New Issue
Block a user