From fee9230bb518e9a688e65e6125d9cbe4f8ad8cff Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 16 Apr 2025 11:10:27 +0200 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/iris/iris_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index fb4c080e877..5ede6dd089c 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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);