i965: Prevent implicit upcasts to brw_reg.
authorMatt Turner <mattst88@gmail.com>
Fri, 20 Nov 2015 05:51:37 +0000 (21:51 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Nov 2015 17:58:33 +0000 (09:58 -0800)
commit2d8c5299032d229c8f6e936db5644cd53716e6c1
treed2857fc24dd94a099b25e7c7460968f2cab3ea99
parent799f924073c62c3a012c48a51895b46ad621e36c
i965: Prevent implicit upcasts to brw_reg.

Now that backend_reg inherits from brw_reg, we have to be careful to
avoid the object slicing problem.

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