compiler: ensure glsl types are not created without a reference
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 31 Jul 2019 09:00:47 +0000 (12:00 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 21 Aug 2019 07:44:10 +0000 (09:44 +0200)
commit9f37bc419cb842bee902eb3117a20b7a57d64381
treef074b4ef348119d75aedb9f4ec0c0b4f57d9c54f
parent8b913bd1ce6f67c89bd3c6e644db6882544351b6
compiler: ensure glsl types are not created without a reference

We want to detect invalid refcounting so assert we have at least one
use before creating types.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/glsl_types.cpp