summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-07-27 11:50:41 +0200
committerNicolai Hähnle <[email protected]>2017-08-02 09:46:32 +0200
commitaff9c541250575c79f43707e03a3ef114feeebee (patch)
tree41129a97f7040ead70a733e7503ef3b6901d67cc /src/gallium/drivers
parent16923e42a419048b61b72f8fdae2aed32cf1212a (diff)
gallium: add util_dump_query_type and use it in ddebug
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/ddebug/dd_draw.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c
index 3e34f63034e..81a796873f1 100644
--- a/src/gallium/drivers/ddebug/dd_draw.c
+++ b/src/gallium/drivers/ddebug/dd_draw.c
@@ -180,21 +180,11 @@ util_dump_color_union(FILE *f, const union pipe_color_union *color)
}
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");