mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
pan/decode: Skip COMPUTE in blobber-db
The blob uses COMPUTE jobs for some internal purposes. These are essentially free but panfrost doesn't use them, so it messes up the numbering. Just filter them out. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
09671c8d68
commit
ead35f586c
1 changed files with 17 additions and 12 deletions
|
|
@ -1878,20 +1878,25 @@ pandecode_shader_disassemble(mali_ptr shader_ptr, int shader_no, int type,
|
|||
MESA_SHADER_FRAGMENT : MESA_SHADER_VERTEX);
|
||||
}
|
||||
|
||||
/* Print shader-db stats */
|
||||
/* Print shader-db stats. Skip COMPUTE jobs since they are used for
|
||||
* driver-internal purposes with the blob and interfere */
|
||||
|
||||
unsigned nr_threads =
|
||||
(stats.work_count <= 4) ? 4 :
|
||||
(stats.work_count <= 8) ? 2 :
|
||||
1;
|
||||
bool should_shaderdb = type != JOB_TYPE_COMPUTE;
|
||||
|
||||
printf("shader%d - %s shader: "
|
||||
"%u inst, %u bundles, %u quadwords, "
|
||||
"%u registers, %u threads, 0 loops\n\n\n",
|
||||
shader_id++,
|
||||
shader_type_for_job(type),
|
||||
stats.instruction_count, stats.bundle_count, stats.quadword_count,
|
||||
stats.work_count, nr_threads);
|
||||
if (should_shaderdb) {
|
||||
unsigned nr_threads =
|
||||
(stats.work_count <= 4) ? 4 :
|
||||
(stats.work_count <= 8) ? 2 :
|
||||
1;
|
||||
|
||||
printf("shader%d - %s shader: "
|
||||
"%u inst, %u bundles, %u quadwords, "
|
||||
"%u registers, %u threads, 0 loops\n\n\n",
|
||||
shader_id++,
|
||||
shader_type_for_job(type),
|
||||
stats.instruction_count, stats.bundle_count, stats.quadword_count,
|
||||
stats.work_count, nr_threads);
|
||||
}
|
||||
|
||||
|
||||
return stats;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue