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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user