iris: Enable INTEL_MEASURE for compute dispatches on XeHP
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 26 Oct 2022 15:12:52 +0000 (08:12 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Oct 2022 09:28:01 +0000 (09:28 +0000)
Cc: mesa-stable
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19324>

src/gallium/drivers/iris/iris_state.c

index 5fa58a9..4f157c8 100644 (file)
@@ -7233,6 +7233,8 @@ iris_upload_compute_walker(struct iris_context *ice,
    if (grid->indirect)
       iris_load_indirect_location(ice, batch, grid);
 
+   iris_measure_snapshot(ice, batch, INTEL_SNAPSHOT_COMPUTE, NULL, NULL, NULL);
+
    iris_emit_cmd(batch, GENX(COMPUTE_WALKER), cw) {
       cw.IndirectParameterEnable        = grid->indirect;
       cw.SIMDSize                       = dispatch.simd_size / 16;