Commit b4a8bc4a authored by Louis-Francis Ratté-Boulianne's avatar Louis-Francis Ratté-Boulianne Committed by Erik Faye-Lund
Browse files

d3d12: Don't begin subquery if queries are disabled

parent 4d255146
......@@ -439,7 +439,8 @@ d3d12_validate_queries(struct d3d12_context *ctx)
if (query->type == PIPE_QUERY_PRIMITIVES_GENERATED && !have_xfb && !query->subquery) {
struct pipe_query *subquery = d3d12_create_query(&ctx->base, PIPE_QUERY_PIPELINE_STATISTICS, 0);
query->subquery = (struct d3d12_query *)subquery;
begin_query(ctx, query->subquery, true);
if (!ctx->queries_disabled)
begin_query(ctx, query->subquery, true);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment