mesa/src/compiler
Jason Ekstrand 29cba3b695 nir/validate: Don't abort() until after the shader has printed
In the case where SSA use/def chains are broken, NIR prints out a very
cryptic error and then aborts.  This abort happens during validation
rather than after the print is complete, hiding any other errors that
may have been found.  One might think, "So what?  Fix your use/def issue
first."  However, what makes this especially bad is that, when use/def
chains are broken, there's usually a much nicer error inline in the
shader that would have been printed had we not aborted early so the
current behavior simply ensures you get the most cryptic error possible
in an already difficult-to-debug case.

While we're at it, we remove the one other case of abort() which is in
the validation of phi instruction sources.

Reviewed-by: Rob Clark <robclark@freedesktop.org>
Tested-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5809>
2020-07-08 19:51:58 +00:00
..
glsl glsl: lower mediump temporaries to 16 bits except structures (v2) 2020-07-07 22:02:06 -04:00
nir nir/validate: Don't abort() until after the shader has printed 2020-07-08 19:51:58 +00:00
spirv Revert "nir: Support sysval tess levels in SPIR-V to NIR" 2020-07-06 08:48:10 -04:00
Android.glsl.gen.mk mesa: android: Remove unnecessary dependency tracking rules 2019-05-06 11:29:25 +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
Makefile.sources nir: Add nir_lower_clip_disable.c to SCons build. 2020-07-04 01:04:54 +00:00
SConscript
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
SConscript.spirv
builtin_type_macros.h
glsl_types.cpp nir: add int16 and uint16 type helpers 2020-06-02 20:01:18 +00:00
glsl_types.h glsl: don't lower builtins to mediump that don't allow it 2020-07-07 22:02:06 -04:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
nir_types.cpp nir: add glsl_get_ifc_packing() helper 2020-06-03 02:22:23 +00:00
nir_types.h nir: add glsl_get_ifc_packing() helper 2020-06-03 02:22:23 +00:00
shader_enums.c compiler: Add a system value for the line coord 2020-07-06 21:59:15 +00:00
shader_enums.h compiler: Add a system value for the line coord 2020-07-06 21:59:15 +00:00
shader_info.h nir: gather which images are MSAA 2020-06-02 20:47:49 +00:00