BUF_TYPE_GEM
buf_info->types[reg_type] = BUF_TYPE_GEM;
if (buf_info->types[reg_type] == BUF_TYPE_GEM) {
if (buf_info->types[reg_type] == BUF_TYPE_GEM)