iris/xe: fix compute shader start address

It needs to apply the offset so it selects the correct SIMD shader.

Cc: mesa-stable
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34548>
(cherry picked from commit fee9230bb5)
This commit is contained in:
Karol Herbst 2025-04-16 11:10:27 +02:00 committed by Eric Engestrom
parent 855bc8242a
commit de59c4b553
2 changed files with 3 additions and 2 deletions

View file

@ -364,7 +364,7 @@
"description": "iris/xe: fix compute shader start address",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -9108,7 +9108,8 @@ iris_upload_compute_walker(struct iris_context *ice,
}
struct GENX(INTERFACE_DESCRIPTOR_DATA) idd = {};
idd.KernelStartPointer = KSP(shader);
idd.KernelStartPointer =
KSP(shader) + iris_cs_data_prog_offset(cs_data, dispatch.simd_size);
idd.NumberofThreadsinGPGPUThreadGroup = dispatch.threads;
idd.SharedLocalMemorySize =
intel_compute_slm_encode_size(GFX_VER, shader->total_shared);