kk: Fix disabling workaround 4

Fixes: 67d05f71e9 ("kk: Track fragment helper status since Metal does not correctly demote them")

Signed-off-by: Aitor Camacho <aitor@lunarg.com>
(cherry picked from commit 29900e8229)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39828>
This commit is contained in:
Aitor Camacho 2026-01-29 01:24:02 +09:00 committed by Marge Bot
parent 5b7b66e43b
commit eefede5549
2 changed files with 4 additions and 1 deletions

View file

@ -2824,7 +2824,7 @@
"description": "kk: Fix disabling workaround 4",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "67d05f71e9e8a740a4e37752eba4e1939f228d76",
"notes": null

View file

@ -952,7 +952,10 @@ intrinsic_to_msl(struct nir_to_msl_ctx *ctx, nir_intrinsic_instr *instr)
case nir_intrinsic_load_base_instance:
P(ctx, "gl_BaseInstance;\n");
break;
/* load_helper_invocation is undefined after a demote, so we can just assume
* it'll be called before that and map it to simd_is_helper_thread. */
case nir_intrinsic_load_helper_invocation:
case nir_intrinsic_is_helper_invocation:
P(ctx, "simd_is_helper_thread();\n");
break;
case nir_intrinsic_ddx: