iris: Enable INTEL_MEASURE for compute dispatches on XeHP

Cc: mesa-stable
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19324>
(cherry picked from commit 48844910a3)
This commit is contained in:
Nanley Chery
2022-10-26 08:12:52 -07:00
committed by Dylan Baker
parent e3a5a7683d
commit ca30a3df24
2 changed files with 3 additions and 1 deletions

View File

@@ -2038,7 +2038,7 @@
"description": "iris: Enable INTEL_MEASURE for compute dispatches on XeHP",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View File

@@ -7117,6 +7117,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;