glsl/tests: take refs on glsl types
Much like each driver, tests as standalone entities must take references on the glsl 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>
This commit is contained in:
@@ -57,6 +57,8 @@ public:
|
||||
void
|
||||
common_builtin::SetUp()
|
||||
{
|
||||
glsl_type_singleton_init_or_ref();
|
||||
|
||||
this->mem_ctx = ralloc_context(NULL);
|
||||
this->ir.make_empty();
|
||||
|
||||
@@ -79,6 +81,8 @@ common_builtin::TearDown()
|
||||
{
|
||||
ralloc_free(this->mem_ctx);
|
||||
this->mem_ctx = NULL;
|
||||
|
||||
glsl_type_singleton_decref();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user