mesa/src/compiler
Connor Abbott 7f0cd6f153 nir/opt_if: Use early returns in opt_if_merge()
We would've had to add yet another level of indentation, or duplicated
finding the if conditions in the next commit. Refactor this function to
use early returns like our other optimizations, so that this isn't an
issue.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6866>
2020-09-30 15:47:51 +00:00
..
glsl mesa,glsl: add support for GL_NV_shader_atomic_int64 2020-09-29 14:24:44 +00:00
nir nir/opt_if: Use early returns in opt_if_merge() 2020-09-30 15:47:51 +00:00
spirv spirv: Delete the legacy offset/index UBO/SSBO lowering 2020-09-30 07:20:39 +00:00
Android.glsl.gen.mk Android: Fixes for Q and R 2020-07-15 20:49:24 +00:00
Android.glsl.mk
Android.mk
Android.nir.gen.mk nir: Add missing dependency in Android.nir.gen.mk 2019-08-19 09:53:18 +03:00
Android.nir.mk android: fix libmesa_nir build 2017-07-21 08:47:56 +03:00
builtin_type_macros.h nir/vtn: Add support for kernel images to SPIRV-to-NIR. 2020-08-31 21:17:39 +00:00
glsl_types.cpp glsl_type: Add packed to structure type comparison for hash map 2020-09-18 19:33:00 +00:00
glsl_types.h nir: Add glsl_base_type unsigned -> signed version helper 2020-09-25 20:09:08 +00:00
Makefile.sources nir: Add nir_lower_multiview pass 2020-09-29 10:31:59 +00:00
meson.build spirv: add some tests for volatile/available/visible 2020-09-01 17:15:22 +00:00
nir_types.cpp compiler/types: Add glsl_baseN_t_type(bit_size) helpers 2020-09-25 23:48:03 +00:00
nir_types.h compiler/types: Add glsl_baseN_t_type(bit_size) helpers 2020-09-25 23:48:03 +00:00
SConscript spirv: Fix building with SCons 2018-03-30 14:33:03 -06:00
SConscript.glsl Move compiler.h and imports.h/c from src/mesa/main into src/util 2020-03-27 21:00:09 +00:00
SConscript.nir nir: mako all the intrinsics 2018-03-27 08:36:37 -04:00
SConscript.spirv spirv: Fix building with SCons 2018-03-30 14:33:03 -06:00
shader_enums.c compiler: add INTERP_MODE_COLOR for radeonsi 2020-09-02 23:03:00 -04:00
shader_enums.h compiler: add INTERP_MODE_COLOR for radeonsi 2020-09-02 23:03:00 -04:00
shader_info.h nir: Add an internal flag to shader_info 2020-09-25 20:09:08 +00:00