Lines Matching refs:RefCount
110 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_init_program()
127 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_free_program_data()
128 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_free_program_data()
155 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_update_default_objects_program()
156 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_update_default_objects_program()
162 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_update_default_objects_program()
194 prog->RefCount = 1; in _mesa_init_gl_program()
253 assert(prog->RefCount==0); in _mesa_delete_program()
324 assert(oldProg->RefCount > 0); in _mesa_reference_program_()
326 if (p_atomic_dec_zero(&oldProg->RefCount)) { in _mesa_reference_program_()
337 p_atomic_inc(&prog->RefCount); in _mesa_reference_program_()