mesa/src
Alyssa Rosenzweig 19daa9283c nir: Add nir_foreach_function_impl helper
Most users of nir_foreach_function actually want the nir_function_impl, not the
nir_function, and want to skip empty functions (though some graphics-specific
passes sometimes fail to do that part). Add a nir_foreach_function_impl macro
to make that case more ergonomic.

   nir_foreach_function_impl(impl, shader) {
      ...
      foo(impl)
   }

is equivalent to:

   nir_foreach_function(func, shader) {
      if (func->impl) {
         ...
         foo(func->impl);
      }
   }

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23807>
2023-06-27 22:44:04 +00:00
..
amd radv: use nir_opt_intrinsics 2023-06-27 18:53:50 +00:00
android_stub util/log: improve logger_android 2023-02-22 17:55:40 +00:00
asahi treewide: Use nir_builder_create more 2023-06-27 18:13:02 +00:00
broadcom nir: Use nir_builder_create 2023-06-27 18:13:02 +00:00
c11 treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
compiler nir: Add nir_foreach_function_impl helper 2023-06-27 22:44:04 +00:00
drm-shim drm-shim: Avoid assertion fail if someone does close(-1). 2023-06-01 01:50:41 +00:00
egl treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
etnaviv etnaviv: linker: add fallback lookup to VARYING_SLOT_BFC[n] 2023-06-27 09:26:40 +00:00
freedreno nir: Use nir_builder_create 2023-06-27 18:13:02 +00:00
gallium iris: Use set PAT extension on BO creation for MTL 2023-06-27 22:06:19 +00:00
gbm gbm: drop unnecessary vulkan dependency 2023-02-23 18:31:22 +00:00
getopt
glx treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
gtest gtest: Update to 1.13.0 2023-05-14 11:09:02 +00:00
imagination treewide: Use nir_builder_create more 2023-06-27 18:13:02 +00:00
imgui
intel intel/devinfo/i915: Set has_set_pat_uapi for MTL+ 2023-06-27 22:06:19 +00:00
loader dri3: only invalidate drawables on geometry change if geometry has changed 2023-06-15 12:22:24 +00:00
mapi mapi: Hide OpenGL functions to be exported when shared-glapi is disabled 2023-06-27 20:25:09 +00:00
mesa treewide: Use nir_builder_create more 2023-06-27 18:13:02 +00:00
microsoft dzn: VK_EXT_external_memory_host 2023-06-27 21:21:53 +00:00
nouveau nv50/ir/nir: set numBarriers if we emit an OP_BAR 2023-06-24 02:12:14 +00:00
panfrost treewide: Remove unused builders 2023-06-27 18:13:02 +00:00
tool meson: remove needless c++17-overrides 2023-05-19 12:45:31 +00:00
util util: include "util/compiler.h" instead of "pipe/p_compiler.h" 2023-06-27 18:18:30 +08:00
virtio venus: Fix detection of push descriptor set 2023-06-22 20:37:01 +00:00
vulkan treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
.clang-format treewide: Add a .clang-format file 2023-05-29 21:06:12 +00:00
meson.build hgl: remove 2023-02-18 00:44:43 +00:00