From 62fd3353387547504966d77f3350afc9b688ef93 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Wed, 18 Mar 2015 15:21:20 +0200 Subject: [PATCH] i965/vec4: Pass argument by reference to src_reg/dst_reg conversion constructors. Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_ir_vec4.h | 4 ++-- 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(); -- 2.30.2