i965: Use implicit backend_reg copy-constructor.
authorMatt Turner <mattst88@gmail.com>
Sat, 21 Nov 2015 05:18:26 +0000 (21:18 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Nov 2015 17:58:33 +0000 (09:58 -0800)
commitf093c842e65b251e24ea3a2d6daaa91326a4f862
treea6537178d047859337223c0d699f6a1f0f81e27e
parent309a44d63c75a7d688157486b094e555f49c907d
i965: Use implicit backend_reg copy-constructor.

In order to do this, we have to change the signature of the
backend_reg(brw_reg) constructor to take a reference to a brw_reg in
order to avoid unresolvable ambiguity about which constructor is
actually being called in the other modifications in this patch.

As far as I understand it, the rule in C++ is that if multiple
constructors are available for parent classes, the one closest to you in
the class heirarchy is closen, but if one of them didn't take a
reference, that screws things up.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_shader.h
src/mesa/drivers/dri/i965/brw_vec4.cpp