mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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:
parent
37597c60ea
commit
36e42299fa
1 changed files with 3 additions and 0 deletions
|
|
@ -1712,6 +1712,9 @@ static void
|
||||||
agx_shader_initialize(struct agx_device *dev, struct agx_uncompiled_shader *so,
|
agx_shader_initialize(struct agx_device *dev, struct agx_uncompiled_shader *so,
|
||||||
nir_shader *nir)
|
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);
|
so->type = pipe_shader_type_from_mesa(nir->info.stage);
|
||||||
|
|
||||||
nir_lower_robust_access_options robustness = {
|
nir_lower_robust_access_options robustness = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue