i965/fs: Remove fs_reg::retype.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 8 Dec 2013 03:59:11 +0000 (04:59 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 19 Feb 2014 15:27:25 +0000 (16:27 +0100)
commit6f56d5dc6047d0f926706e28fe1d809622c5b7e3
treecf0e712110124800c510cbbf5f22633d2f508903
parent3b032732753b18c84482e30dd3675403eec7919f
i965/fs: Remove fs_reg::retype.

There doesn't seem to be any reason for it to be a method, and it's
surprising that the expression 'reg.retype(t)' doesn't retype its
object but rather it creates a temporary with the new type.  Use
'retype(reg, t)' instead.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp