asahi: handle kernels

Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25052>
This commit is contained in:
Karol Herbst 2023-08-29 15:02:41 +02:00 committed by Marge Bot
parent 37597c60ea
commit 36e42299fa

View file

@ -1712,6 +1712,9 @@ static void
agx_shader_initialize(struct agx_device *dev, struct agx_uncompiled_shader *so,
nir_shader *nir)
{
if (nir->info.stage == MESA_SHADER_KERNEL)
nir->info.stage = MESA_SHADER_COMPUTE;
so->type = pipe_shader_type_from_mesa(nir->info.stage);
nir_lower_robust_access_options robustness = {