*/
#include "pipe/p_state.h"
+#include "util/u_dump.h"
+#include "freedreno_log.h"
#include "freedreno_resource.h"
#include "fd6_compute.h"
OUT_RING(ring, 1); /* HLSQ_CS_KERNEL_GROUP_Y */
OUT_RING(ring, 1); /* HLSQ_CS_KERNEL_GROUP_Z */
+ fd_log(ctx->batch, "COMPUTE: START");
+ fd_log_stream(ctx->batch, stream, util_dump_grid_info(stream, info));
+
if (info->indirect) {
struct fd_resource *rsc = fd_resource(info->indirect);
OUT_RING(ring, CP_EXEC_CS_3_NGROUPS_Z(info->grid[2]));
}
+ fd_log(ctx->batch, "COMPUTE: END");
OUT_WFI5(ring);
+ fd_log(ctx->batch, "..");
fd6_cache_flush(ctx->batch, ring);
+ fd_log(ctx->batch, "..");
}
void
file = open(sys.argv[1], "r")
lines = file.read().split('\n')
+ compute_match = re.compile(r"COMPUTE: START")
gmem_match = re.compile(r": rendering (\S+)x(\S+) tiles")
sysmem_match = re.compile(r": rendering sysmem (\S+)x(\S+)")
blit_match = re.compile(r": END BLIT")
times_blit = []
times_sysmem = []
times_gmem = []
+ times_compute = []
times = None
for line in lines:
+ match = re.search(compute_match, line)
+ if match is not None:
+ #printf("GRID/COMPUTE")
+ if times is not None:
+ print("expected times to not be set yet")
+ times = times_compute
+ continue
+
match = re.search(gmem_match, line)
if match is not None:
#print("GMEM")
match = re.search(eof_match, line)
if match is not None:
frame_nr = int(match.group(1))
- print("FRAME[{}]: {} blits ({:,} ns), {} SYSMEM ({:,} ns), {} GMEM ({:,} ns)".format(
+ print("FRAME[{}]: {} blits ({:,} ns), {} SYSMEM ({:,} ns), {} GMEM ({:,} ns), {} COMPUTE ({:,} ns)".format(
frame_nr,
len(times_blit), sum(times_blit),
len(times_sysmem), sum(times_sysmem),
- len(times_gmem), sum(times_gmem)
+ len(times_gmem), sum(times_gmem),
+ len(times_compute), sum(times_compute)
))
times_blit = []
times_sysmem = []