From 019bf6ed8dd4843512e9d4924f4702ce36047ad5 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Wed, 15 Jan 2014 22:21:30 +0100 Subject: i965/fs: Remove fs_reg::smear. The same effect can be achieved using a combination of ::stride and ::subreg_offset. Remove the less flexible ::smear to keep the data members of fs_reg orthogonal. Reviewed-by: Matt Turner Reviewed-by: Paul Berry --- src/mesa/drivers/dri/i965/brw_fs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i965/brw_fs.h') diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 84bed9f4358..85d06ff214c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -107,7 +107,9 @@ public: bool abs; bool sechalf; struct brw_reg fixed_hw_reg; - int smear; /* -1, or a channel of the reg to smear to all channels. */ + + /** Smear a channel of the reg to all channels. */ + fs_reg &set_smear(unsigned subreg); /** Value for file == IMM */ union { -- cgit v1.2.3