diff options
author | Matt Turner <[email protected]> | 2014-06-28 13:46:29 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-06-30 22:31:05 -0700 |
commit | d35f34cea9558c23700532d4a7142dab2cc342a8 (patch) | |
tree | 2201419c8194d5556b4a0715a3ce439942ba0f5a /src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | |
parent | e4b05af5d42b192ead493bc6ef9061ae57390058 (diff) |
i965/vec4: Pass const references to vec4_instruction().
text data bss dec hex filename
4244821 123200 39648 4407669 434175 i965_dri.so
4231165 123200 39648 4394013 430c1d i965_dri.so
Cuts 13k of .text and saves a bunch of useless struct copies.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 3a360d452d2..c732c90068c 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -30,8 +30,9 @@ extern "C" { namespace brw { vec4_instruction::vec4_instruction(vec4_visitor *v, - enum opcode opcode, dst_reg dst, - src_reg src0, src_reg src1, src_reg src2) + enum opcode opcode, const dst_reg &dst, + const src_reg &src0, const src_reg &src1, + const src_reg &src2) { this->opcode = opcode; this->dst = dst; |