protected:
comparison_pre_test()
{
+ glsl_type_singleton_init_or_ref();
+
static const nir_shader_compiler_options options = { };
nir_builder_init_simple_shader(&bld, NULL, MESA_SHADER_VERTEX, &options);
~comparison_pre_test()
{
ralloc_free(bld.shader);
+ glsl_type_singleton_decref();
}
struct nir_builder bld;
nir_cf_test::nir_cf_test()
{
+ glsl_type_singleton_init_or_ref();
+
static const nir_shader_compiler_options options = { };
nir_builder_init_simple_shader(&b, NULL, MESA_SHADER_VERTEX, &options);
}
nir_cf_test::~nir_cf_test()
{
ralloc_free(b.shader);
+ glsl_type_singleton_decref();
}
TEST_F(nir_cf_test, delete_break_in_loop)
protected:
const_value_negative_equal_test()
{
+ glsl_type_singleton_init_or_ref();
+
memset(c1, 0, sizeof(c1));
memset(c2, 0, sizeof(c2));
}
~const_value_negative_equal_test()
{
- /* empty */
+ glsl_type_singleton_decref();
}
nir_const_value c1[NIR_MAX_VEC_COMPONENTS];
protected:
alu_srcs_negative_equal_test()
{
+ glsl_type_singleton_init_or_ref();
+
static const nir_shader_compiler_options options = { };
nir_builder_init_simple_shader(&bld, NULL, MESA_SHADER_VERTEX, &options);
memset(c1, 0, sizeof(c1));
~alu_srcs_negative_equal_test()
{
ralloc_free(bld.shader);
+ glsl_type_singleton_decref();
}
struct nir_builder bld;
nir_vars_test::nir_vars_test()
{
+ glsl_type_singleton_init_or_ref();
+
mem_ctx = ralloc_context(NULL);
lin_ctx = linear_alloc_parent(mem_ctx, 0);
static const nir_shader_compiler_options options = { };
}
ralloc_free(mem_ctx);
+
+ glsl_type_singleton_decref();
}
unsigned