blorp: Implement blorp hooks to emit breakpoint

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24308>
This commit is contained in:
Sagar Ghuge
2023-08-01 09:52:09 -07:00
committed by Marge Bot
parent 1e3b40ffcf
commit f575d4bc6f
5 changed files with 59 additions and 1 deletions

View File

@@ -489,3 +489,17 @@ genX(init_blorp)(struct iris_context *ice)
ice->blorp.upload_shader = iris_blorp_upload_shader;
ice->blorp.exec = iris_blorp_exec;
}
static void
blorp_emit_breakpoint_pre_draw(struct blorp_batch *blorp_batch)
{
struct iris_batch *batch = blorp_batch->driver_batch;
genX(maybe_emit_breakpoint)(batch, true);
}
static void
blorp_emit_breakpoint_post_draw(struct blorp_batch *blorp_batch)
{
struct iris_batch *batch = blorp_batch->driver_batch;
genX(maybe_emit_breakpoint)(batch, false);
}