Lines Matching refs:RefCount
71 assert(old->RefCount > 0); in _reference_shader()
73 if (p_atomic_dec_zero(&old->RefCount)) { in _reference_shader()
89 p_atomic_inc(&sh->RefCount); in _reference_shader()
104 shader->RefCount = 1; in _mesa_init_shader()
221 assert(oldData->RefCount > 0); in _mesa_reference_shader_program_data()
223 if (p_atomic_dec_zero(&oldData->RefCount)) { in _mesa_reference_shader_program_data()
238 p_atomic_inc(&data->RefCount); in _mesa_reference_shader_program_data()
263 assert(old->RefCount > 0); in _mesa_reference_shader_program_()
265 if (p_atomic_dec_zero(&old->RefCount)) { in _mesa_reference_shader_program_()
278 p_atomic_inc(&shProg->RefCount); in _mesa_reference_shader_program_()
289 data->RefCount = 1; in _mesa_create_shader_program_data()
300 prog->RefCount = 1; in init_shader_program()