Lines Matching refs:RefCount
71 assert(old->RefCount > 0); in _mesa_reference_shader()
73 if (p_atomic_dec_zero(&old->RefCount)) { in _mesa_reference_shader()
85 p_atomic_inc(&sh->RefCount); in _mesa_reference_shader()
93 shader->RefCount = 1; in _mesa_init_shader()
209 assert(oldData->RefCount > 0); in _mesa_reference_shader_program_data()
211 if (p_atomic_dec_zero(&oldData->RefCount)) { in _mesa_reference_shader_program_data()
226 p_atomic_inc(&data->RefCount); in _mesa_reference_shader_program_data()
251 assert(old->RefCount > 0); in _mesa_reference_shader_program_()
253 if (p_atomic_dec_zero(&old->RefCount)) { in _mesa_reference_shader_program_()
264 p_atomic_inc(&shProg->RefCount); in _mesa_reference_shader_program_()
275 data->RefCount = 1; in _mesa_create_shader_program_data()
286 prog->RefCount = 1; in init_shader_program()