diff options
author | Matt Turner <[email protected]> | 2014-05-27 10:25:05 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-06-01 13:29:24 -0700 |
commit | 07af0abef024f8a17a00975265eff79aa069c9b5 (patch) | |
tree | d190955550ecd9717fdc56aab67232caebe8908d /src/mesa/drivers/dri/i965/brw_fs.h | |
parent | b1dcdcde2e323f960833f5c7da65d5c2c20113c9 (diff) |
i965/fs: Clean up fs_inst constructors.
In a fashion suggested by Ken.
Reviewed-by: Chris Forbes <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 4f8a2b22ad8..fb68923009c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -190,15 +190,14 @@ class fs_inst : public backend_instruction { public: DECLARE_RALLOC_CXX_OPERATORS(fs_inst) - void init(int sources); - - fs_inst(); - fs_inst(enum opcode opcode); - fs_inst(enum opcode opcode, fs_reg dst); - fs_inst(enum opcode opcode, fs_reg dst, fs_reg src0); - fs_inst(enum opcode opcode, fs_reg dst, fs_reg src0, fs_reg src1); - fs_inst(enum opcode opcode, fs_reg dst, - fs_reg src0, fs_reg src1,fs_reg src2); + void init(enum opcode opcode, const fs_reg &dst, fs_reg *src, int sources); + + fs_inst(enum opcode opcode = BRW_OPCODE_NOP, const fs_reg &dst = reg_undef); + fs_inst(enum opcode opcode, const fs_reg &dst, const fs_reg &src0); + fs_inst(enum opcode opcode, const fs_reg &dst, const fs_reg &src0, + const fs_reg &src1); + fs_inst(enum opcode opcode, const fs_reg &dst, const fs_reg &src0, + const fs_reg &src1, const fs_reg &src2); fs_inst(const fs_inst &that); bool equals(fs_inst *inst) const; |