blorp: Add blorp_measure hooks to the blitter codepaths
I had missed these when hooking up the original support.
Fixes: 31eeb72e45
("blorp: Add support for blorp_copy via XY_BLOCK_COPY_BLT")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15157>
This commit is contained in:

committed by
Marge Bot

parent
e6b7e74308
commit
97f18d2929
@@ -2522,6 +2522,21 @@ blorp_xy_block_copy_blt(struct blorp_batch *batch,
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
blorp_exec_blitter(struct blorp_batch *batch,
|
||||
const struct blorp_params *params)
|
||||
{
|
||||
blorp_measure_start(batch, params);
|
||||
|
||||
/* Someday, if we implement clears on the blit enginer, we can
|
||||
* use params->src.enabled to determine which case we're in.
|
||||
*/
|
||||
assert(params->src.enabled);
|
||||
blorp_xy_block_copy_blt(batch, params);
|
||||
|
||||
blorp_measure_end(batch, params);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Execute a blit or render pass operation.
|
||||
*
|
||||
@@ -2535,11 +2550,7 @@ static void
|
||||
blorp_exec(struct blorp_batch *batch, const struct blorp_params *params)
|
||||
{
|
||||
if (batch->flags & BLORP_BATCH_USE_BLITTER) {
|
||||
/* Someday, if we implement clears on the blit enginer, we can
|
||||
* use params->src.enabled to determine which case we're in.
|
||||
*/
|
||||
assert(params->src.enabled);
|
||||
blorp_xy_block_copy_blt(batch, params);
|
||||
blorp_exec_blitter(batch, params);
|
||||
} else if (batch->flags & BLORP_BATCH_USE_COMPUTE) {
|
||||
blorp_exec_compute(batch, params);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user