mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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> (cherry picked from commit97f18d2929)
This commit is contained in:
parent
23032ee9db
commit
9db0bfb073
2 changed files with 17 additions and 6 deletions
|
|
@ -265,7 +265,7 @@
|
||||||
"description": "blorp: Add blorp_measure hooks to the blitter codepaths",
|
"description": "blorp: Add blorp_measure hooks to the blitter codepaths",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "31eeb72e45be6ef943df0b60f3cd7a646fa7b349"
|
"because_sha": "31eeb72e45be6ef943df0b60f3cd7a646fa7b349"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2522,6 +2522,21 @@ blorp_xy_block_copy_blt(struct blorp_batch *batch,
|
||||||
#endif
|
#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.
|
* \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)
|
blorp_exec(struct blorp_batch *batch, const struct blorp_params *params)
|
||||||
{
|
{
|
||||||
if (batch->flags & BLORP_BATCH_USE_BLITTER) {
|
if (batch->flags & BLORP_BATCH_USE_BLITTER) {
|
||||||
/* Someday, if we implement clears on the blit enginer, we can
|
blorp_exec_blitter(batch, params);
|
||||||
* use params->src.enabled to determine which case we're in.
|
|
||||||
*/
|
|
||||||
assert(params->src.enabled);
|
|
||||||
blorp_xy_block_copy_blt(batch, params);
|
|
||||||
} else if (batch->flags & BLORP_BATCH_USE_COMPUTE) {
|
} else if (batch->flags & BLORP_BATCH_USE_COMPUTE) {
|
||||||
blorp_exec_compute(batch, params);
|
blorp_exec_compute(batch, params);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue