i965: added brw_same_reg()

This commit is contained in:
Brian Paul
2009-04-02 14:33:45 -06:00
parent a330a6fcd0
commit 21982a2cd5
+7
View File
@@ -730,6 +730,13 @@ static INLINE struct brw_indirect brw_indirect( GLuint addr_subnr, GLint offset
return ptr;
}
/** Do two brw_regs refer to the same register? */
static INLINE GLboolean
brw_same_reg(struct brw_reg r1, struct brw_reg r2)
{
return r1.file == r2.file && r1.nr == r2.nr;
}
static INLINE struct brw_instruction *current_insn( struct brw_compile *p)
{
return &p->store[p->nr_insn];