diff options
author | Francisco Jerez <[email protected]> | 2015-03-18 15:21:20 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-03-23 14:09:32 +0200 |
commit | 62fd3353387547504966d77f3350afc9b688ef93 (patch) | |
tree | f76a508ea83a622190b60a2b8172520bfdef25ac /src/mesa/drivers/dri | |
parent | 23bda945f570b4f566ed39b4c1de89a957247df7 (diff) |
i965/vec4: Pass argument by reference to src_reg/dst_reg conversion constructors.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_ir_vec4.h | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_ir_vec4.h b/src/mesa/drivers/dri/i965/brw_ir_vec4.h index 2b50565bced..def61ff8bae 100644 --- a/src/mesa/drivers/dri/i965/brw_ir_vec4.h +++ b/src/mesa/drivers/dri/i965/brw_ir_vec4.h @@ -53,7 +53,7 @@ public: src_reg(class vec4_visitor *v, const struct glsl_type *type); src_reg(class vec4_visitor *v, const struct glsl_type *type, int size); - explicit src_reg(dst_reg reg); + explicit src_reg(const dst_reg ®); unsigned swizzle; /**< BRW_SWIZZLE_XYZW macros from brw_reg.h. */ @@ -113,7 +113,7 @@ public: dst_reg(struct brw_reg reg); dst_reg(class vec4_visitor *v, const struct glsl_type *type); - explicit dst_reg(src_reg reg); + explicit dst_reg(const src_reg ®); bool equals(const dst_reg &r) const; diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index 4f805f3f21b..5606e03dbca 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -123,7 +123,7 @@ src_reg::src_reg(struct brw_reg reg) this->type = reg.type; } -src_reg::src_reg(dst_reg reg) +src_reg::src_reg(const dst_reg ®) { init(); @@ -194,7 +194,7 @@ dst_reg::dst_reg(struct brw_reg reg) this->type = reg.type; } -dst_reg::dst_reg(src_reg reg) +dst_reg::dst_reg(const src_reg ®) { init(); |