Mesa (main): nir_lower_task_shader: Fix return from lower_task_intrin (bool, not void*)

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 31 18:56:28 UTC 2022


Module: Mesa
Branch: main
Commit: f61788d7d315045cc0684db711c7be389a926f1d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f61788d7d315045cc0684db711c7be389a926f1d

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Fri May 27 11:33:52 2022 -0700

nir_lower_task_shader: Fix return from lower_task_intrin (bool, not void*)

Fixes: 8aff8d3d ("nir: Add common task shader lowering to make the backend's job easier.")
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16756>

---

 src/compiler/nir/nir_lower_task_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir_lower_task_shader.c b/src/compiler/nir/nir_lower_task_shader.c
index 6e48efe6e46..e242c0d1171 100644
--- a/src/compiler/nir/nir_lower_task_shader.c
+++ b/src/compiler/nir/nir_lower_task_shader.c
@@ -298,7 +298,7 @@ lower_task_intrin(nir_builder *b,
    case nir_intrinsic_load_task_payload:
       if (s->payload_in_shared)
          return lower_task_payload_to_shared(b, intrin, s);
-      return NULL;
+      return false;
    case nir_intrinsic_launch_mesh_workgroups:
       return lower_task_launch_mesh_workgroups(b, intrin, s);
    default:



More information about the mesa-commit mailing list