mesa/src/compiler
Timothy Arceri b33f811068 glsl: fix incorrect optimisation in opt_constant_variable()
When handling function inputs the optimisation pass incorrectly
assumes the inputs are undefined. Here we simply change things to
assume inputs have always been assigned a value. Any further
optimisations will be taken care of once function inlining takes
place.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2984
Fixes: 65122e9e80 ("ir_constant_variable: New pass to mark constant-assigned variables constant.")

Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5413>
2020-06-12 08:51:54 +00:00
..
glsl glsl: fix incorrect optimisation in opt_constant_variable() 2020-06-12 08:51:54 +00:00
nir nir/print: print tex dest type 2020-06-11 21:59:54 +00:00
spirv spirv: Memory semantics is optional for OpControlBarrier 2020-06-08 15:49:24 +00:00
Android.glsl.gen.mk mesa: android: Remove unnecessary dependency tracking rules 2019-05-06 11:29:25 +00:00
Android.glsl.mk android: glsl: build shader cache sources 2017-02-20 16:30:37 +00:00
Android.mk Android: glsl: add rules to generate ir_expression*.h header files 2016-09-06 15:58:55 +01:00
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 glsl_types: vec8/vec16 support 2018-03-25 10:42:54 -04:00
glsl_types.cpp nir: add int16 and uint16 type helpers 2020-06-02 20:01:18 +00:00
glsl_types.h glsl: handle int16 and uint16 types and add instructions for mediump 2020-06-02 20:01:18 +00:00
Makefile.sources nir: add pass to lower disjoint wrmask's 2020-05-13 20:24:49 -07: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
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 VARYING_SLOT_VIEWPORT_MASK 2020-04-15 20:12:00 -04:00
shader_enums.h freedreno/ir3: Improve shader key normalization. 2020-05-01 16:26:32 +00:00
shader_info.h nir: gather which images are MSAA 2020-06-02 20:47:49 +00:00