mesa/src/compiler
Lionel Landwerlin 58c7c9d438 spirv: handle OpUndef as part of the variable parsing pass
Looking at the following bit of SPIRV shader :

...
%zero        = OpConstant %i32 0
%ivec3_0     = OpConstantComposite %ivec3 %zero %zero %zero
%vec3_undef  = OpUndef %ivec3
%sc_0        = OpSpecConstant %i32 0
%sc_1        = OpSpecConstant %i32 0
%sc_2        = OpSpecConstant %i32 0
...

Our compiler currently stops parsing variables & types on the OpUndef
and switches to instructions, leaving the following sc_[0-2] variables
untreated.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "17.0 13.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit df7063cba3)
2017-02-08 16:01:34 +00:00
..
glsl glsl: Use ir_var_temporary when generating inline functions. 2017-01-24 01:13:32 +00:00
nir nir/search: Use the correct bit size for integer comparisons 2017-02-08 15:53:20 +00:00
spirv spirv: handle OpUndef as part of the variable parsing pass 2017-02-08 16:01:34 +00:00
.gitignore nir/spirv: Remove a duplicate spirv2nir from .gitignore 2016-10-04 07:43:15 -07:00
Android.glsl.gen.mk Android: glsl: add rules to generate ir_expression*.h header files 2016-09-06 15:58:55 +01:00
Android.glsl.mk Android: glsl: add rules to generate ir_expression*.h header files 2016-09-06 15:58:55 +01: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 compiler: android: flesh out nir into separate makefile 2016-04-11 19:08:23 +01:00
Android.nir.mk compiler: android: flesh out nir into separate makefile 2016-04-11 19:08:23 +01:00
builtin_type_macros.h glsl: add subpass image type (v2) 2016-09-16 15:16:31 +10:00
glsl_types.cpp glsl: add subpass image type (v2) 2016-09-16 15:16:31 +10:00
glsl_types.h glsl: add subpass image type (v2) 2016-09-16 15:16:31 +10:00
Makefile.am compiler: Move glsl_to_nir to libglsl.la 2016-05-26 14:13:38 -07:00
Makefile.glsl.am glsl: Add pthread libs to cache_test 2016-12-24 13:03:53 +00:00
Makefile.nir.am nir/spirv: Bring back the spirv2nir helper binary 2016-09-21 05:38:26 -07:00
Makefile.sources nir: add conditional discard optimisation (v4) 2016-11-09 23:41:48 +00:00
nir_types.cpp nir: Delete open coded type printing. 2016-10-06 02:13:36 -07:00
nir_types.h nir: Delete open coded type printing. 2016-10-06 02:13:36 -07:00
SConscript glsl: Generate ir_expression_operation.h from Python 2016-08-30 16:28:00 -07:00
SConscript.glsl mesa: Remove prog_hash_table.c 2016-09-12 10:48:35 +10:00
SConscript.nir glsl: Generate ir_expression_operation.h from Python 2016-08-30 16:28:00 -07:00
shader_enums.c compiler: add printable values for cull distance varyings. 2016-10-04 10:15:23 +10:00
shader_enums.h glsl: add gl_LocalGroupSizeARB as a system value 2016-10-07 00:18:57 +02:00