Lines Matching refs:reg_state
147 reg_validate_state *reg_state = (reg_validate_state *) entry->data; in validate_reg_src() local
150 _mesa_set_add(reg_state->uses, src); in validate_reg_src()
153 _mesa_set_add(reg_state->if_uses, src); in validate_reg_src()
156 validate_assert(state, reg_state->where_defined == state->impl && in validate_reg_src()
256 reg_validate_state *reg_state = (reg_validate_state *) entry2->data; in validate_reg_dest() local
257 _mesa_set_add(reg_state->defs, dest); in validate_reg_dest()
259 validate_assert(state, reg_state->where_defined == state->impl && in validate_reg_dest()
1308 reg_validate_state *reg_state = ralloc(state->regs, reg_validate_state); in prevalidate_reg_decl() local
1309 reg_state->uses = _mesa_pointer_set_create(reg_state); in prevalidate_reg_decl()
1310 reg_state->if_uses = _mesa_pointer_set_create(reg_state); in prevalidate_reg_decl()
1311 reg_state->defs = _mesa_pointer_set_create(reg_state); in prevalidate_reg_decl()
1313 reg_state->where_defined = state->impl; in prevalidate_reg_decl()
1315 _mesa_hash_table_insert(state->regs, reg, reg_state); in prevalidate_reg_decl()
1324 reg_validate_state *reg_state = (reg_validate_state *) entry->data; in postvalidate_reg_decl() local
1327 struct set_entry *entry = _mesa_set_search(reg_state->uses, src); in postvalidate_reg_decl()
1329 _mesa_set_remove(reg_state->uses, entry); in postvalidate_reg_decl()
1331 validate_assert(state, reg_state->uses->entries == 0); in postvalidate_reg_decl()
1334 struct set_entry *entry = _mesa_set_search(reg_state->if_uses, src); in postvalidate_reg_decl()
1336 _mesa_set_remove(reg_state->if_uses, entry); in postvalidate_reg_decl()
1338 validate_assert(state, reg_state->if_uses->entries == 0); in postvalidate_reg_decl()
1341 struct set_entry *entry = _mesa_set_search(reg_state->defs, src); in postvalidate_reg_decl()
1343 _mesa_set_remove(reg_state->defs, entry); in postvalidate_reg_decl()
1345 validate_assert(state, reg_state->defs->entries == 0); in postvalidate_reg_decl()