summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_reg.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2014-09-10 11:28:27 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2014-09-30 10:29:13 -0700
commit1c89e098e8e644d6c33b36fabbba0b8d675d115d (patch)
tree6500c81283876877e009790f6b6d80a917394f15 /src/mesa/drivers/dri/i965/brw_reg.h
parentab7234c8520499fcfeed153e0aefeb6b43758d1f (diff)
downloadexternal_mesa3d-1c89e098e8e644d6c33b36fabbba0b8d675d115d.zip
external_mesa3d-1c89e098e8e644d6c33b36fabbba0b8d675d115d.tar.gz
external_mesa3d-1c89e098e8e644d6c33b36fabbba0b8d675d115d.tar.bz2
i965/fs: Make null_reg_* const members of fs_visitor instead of globals
We also set the register width equal to the dispatch width. Right now, this is effectively a no-op since we don't do anything with it. However, it will be important once we add an actual width field to fs_reg. Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_reg.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_reg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h
index 28d3d94..9638c77 100644
--- a/src/mesa/drivers/dri/i965/brw_reg.h
+++ b/src/mesa/drivers/dri/i965/brw_reg.h
@@ -603,6 +603,12 @@ brw_null_reg(void)
}
static inline struct brw_reg
+brw_null_vec(unsigned width)
+{
+ return brw_vecn_reg(width, BRW_ARCHITECTURE_REGISTER_FILE, BRW_ARF_NULL, 0);
+}
+
+static inline struct brw_reg
brw_address_reg(unsigned subnr)
{
return brw_uw1_reg(BRW_ARCHITECTURE_REGISTER_FILE, BRW_ARF_ADDRESS, subnr);