clspv icon indicating copy to clipboard operation
clspv copied to clipboard

Constant generation produces potentially invalid OpConstantNull

Open alan-baker opened this issue 7 years ago • 0 comments

Constant generation in SPIRProducerPass has a case for a constant being a null value Cst->isNullValue(). SPIR-V does not allow all types to be used with OpConstantNull (e.g. samplers and images). A different opcode must be generated for those cases (maybe OpUndef).

alan-baker avatar Aug 28 '18 22:08 alan-baker