summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_live_variables.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-10-26 04:35:14 -0700
committerMatt Turner <mattst88@gmail.com>2015-11-13 11:27:50 -0800
commit7638e75cf99263c1ee8e31c6cc5a319feec2c943 (patch)
treebc5f731f804f538b54d1a5fe92dfe0c47032062c /src/mesa/drivers/dri/i965/brw_fs_live_variables.h
parent3048053908310eaf082058e5be34ae902e1fc02c (diff)
downloadexternal_mesa3d-7638e75cf99263c1ee8e31c6cc5a319feec2c943.tar.gz
external_mesa3d-7638e75cf99263c1ee8e31c6cc5a319feec2c943.tar.bz2
external_mesa3d-7638e75cf99263c1ee8e31c6cc5a319feec2c943.zip
i965: Use brw_reg's nr field to store register number.
In addition to combining another field, we get replace silliness like "reg.reg" with something that actually makes sense, "reg.nr"; and no one will ever wonder again why dst.reg isn't a dst_reg. Moving the now 16-bit nr field to a 16-bit boundary decreases code size by about 3k. Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_live_variables.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_live_variables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_live_variables.h b/src/mesa/drivers/dri/i965/brw_fs_live_variables.h
index c7457069ed..96cadea96a 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_live_variables.h
+++ b/src/mesa/drivers/dri/i965/brw_fs_live_variables.h
@@ -68,7 +68,7 @@ public:
bool vars_interfere(int a, int b);
int var_from_reg(const fs_reg &reg) const
{
- return var_from_vgrf[reg.reg] + reg.reg_offset;
+ return var_from_vgrf[reg.nr] + reg.reg_offset;
}
/** Map from virtual GRF number to index in block_data arrays. */