mesa/src/compiler/spirv
Lionel Landwerlin df7063cba3 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>
2017-01-26 17:29:29 +00:00
..
GLSL.std.450.h spirv: bump headers to SPIRV 1.1 2017-01-25 17:22:23 +00:00
nir_spirv.h spirv: Silence unsupported tessellation capability warnings. 2017-01-10 13:21:38 -08:00
spirv.h spirv: bump headers to SPIRV 1.1 2017-01-25 17:22:23 +00:00
spirv2nir.c spirv: add interface for drivers to define support extensions. 2016-12-28 22:43:17 +00:00
spirv_info.c spirv: bump headers to SPIRV 1.1 2017-01-25 17:22:23 +00:00
spirv_info.h nir/spirv: Add string lookup tables for a couple of SPIR-V enums 2016-06-03 19:29:28 -07:00
spirv_to_nir.c spirv: handle OpUndef as part of the variable parsing pass 2017-01-26 17:29:29 +00:00
vtn_alu.c spirv/nir: implement DF conversions 2017-01-09 09:10:13 +01:00
vtn_cfg.c spirv: Move cursor before calling vtn_ssa_value() in phi 2nd pass. 2017-01-09 16:52:02 -08:00
vtn_glsl450.c spirv/nir: add (un)packDouble2x32() translation 2017-01-09 09:10:13 +01:00
vtn_private.h spirv: Add tessellation varying and built-in support. 2017-01-10 13:21:28 -08:00
vtn_variables.c spirv: handle OpUndef as part of the variable parsing pass 2017-01-26 17:29:29 +00:00