blorp,anv,iris: refactor blorp functions into something more generic

Refactor some of the blorp code into something more generic that we can
reuse for functionality needed post 3DPRIMITIVE emission.

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25039>
This commit is contained in:
Rohan Garg
2023-10-27 11:30:44 +02:00
committed by Marge Bot
parent 09eb6e3106
commit 1b03acb26b
5 changed files with 18 additions and 16 deletions

View File

@@ -504,15 +504,17 @@ genX(init_blorp)(struct iris_context *ice)
}
static void
blorp_emit_breakpoint_pre_draw(struct blorp_batch *blorp_batch)
blorp_emit_pre_draw(struct blorp_batch *blorp_batch, const struct blorp_params *params)
{
struct iris_batch *batch = blorp_batch->driver_batch;
blorp_measure_start(blorp_batch, params);
genX(maybe_emit_breakpoint)(batch, true);
}
static void
blorp_emit_breakpoint_post_draw(struct blorp_batch *blorp_batch)
blorp_emit_post_draw(struct blorp_batch *blorp_batch, const struct blorp_params *params)
{
struct iris_batch *batch = blorp_batch->driver_batch;
genX(maybe_emit_breakpoint)(batch, false);
blorp_measure_end(blorp_batch, params);
}