v3d: treat SHADER_KERNEL as SHADER_COMPUTE

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25362>
This commit is contained in:
Karol Herbst 2023-09-23 11:56:34 +02:00 committed by Marge Bot
parent 3889a8e26c
commit 8f72e60c75

View file

@ -364,6 +364,9 @@ v3d_uncompiled_shader_create(struct pipe_context *pctx,
s = tgsi_to_nir(ir, pctx->screen, false);
}
if (s->info.stage == MESA_SHADER_KERNEL)
s->info.stage = MESA_SHADER_COMPUTE;
if (s->info.stage != MESA_SHADER_VERTEX &&
s->info.stage != MESA_SHADER_GEOMETRY) {
NIR_PASS(_, s, nir_lower_io,