[MESA_SHADER_GEOMETRY] = IRIS_CACHE_GS,
[MESA_SHADER_FRAGMENT] = IRIS_CACHE_FS,
[MESA_SHADER_COMPUTE] = IRIS_CACHE_CS,
- [MESA_SHADER_KERNEL] = IRIS_CACHE_CS,
};
/**
unreachable("Unsupported IR");
}
+ /* Most of iris doesn't really care about the difference between compute
+ * shaders and kernels. We also tend to hard-code COMPUTE everywhere so
+ * it's way easier if we just normalize to COMPUTE here.
+ */
+ assert(nir->info.stage == MESA_SHADER_COMPUTE ||
+ nir->info.stage == MESA_SHADER_KERNEL);
+ nir->info.stage = MESA_SHADER_COMPUTE;
+
struct iris_uncompiled_shader *ish =
iris_create_uncompiled_shader(ctx, nir, NULL);
ish->kernel_input_size = state->req_input_mem;