diff options
author | Matt Turner <mattst88@gmail.com> | 2015-10-26 17:09:25 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-11-13 11:27:50 -0800 |
commit | b163aa01487ab5f9b22c48b7badc5d65999c4985 (patch) | |
tree | 0cd40468ce2bd5aeae3b0b81784ddf7946f19aea /src/mesa/drivers/dri/i965/brw_vec4_live_variables.h | |
parent | 5a23b31c75556fa0fe9ca53db481bbec18c2baba (diff) | |
download | external_mesa3d-b163aa01487ab5f9b22c48b7badc5d65999c4985.zip external_mesa3d-b163aa01487ab5f9b22c48b7badc5d65999c4985.tar.gz external_mesa3d-b163aa01487ab5f9b22c48b7badc5d65999c4985.tar.bz2 |
i965: Rename GRF to VGRF.
The 2-bit hardware register file field is ARF, GRF, MRF, IMM.
Rename GRF to VGRF (virtual GRF) so that we can reuse the GRF name to
mean an assigned general purpose register.
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_vec4_live_variables.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_live_variables.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h b/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h index 4aa98d7..12d281e 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h +++ b/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h @@ -82,7 +82,7 @@ inline unsigned var_from_reg(const simple_allocator &alloc, const src_reg ®, unsigned c = 0) { - assert(reg.file == GRF && reg.nr < alloc.count && + assert(reg.file == VGRF && reg.nr < alloc.count && reg.reg_offset < alloc.sizes[reg.nr] && c < 4); return (4 * (alloc.offsets[reg.nr] + reg.reg_offset) + BRW_GET_SWZ(reg.swizzle, c)); @@ -92,7 +92,7 @@ inline unsigned var_from_reg(const simple_allocator &alloc, const dst_reg ®, unsigned c = 0) { - assert(reg.file == GRF && reg.nr < alloc.count && + assert(reg.file == VGRF && reg.nr < alloc.count && reg.reg_offset < alloc.sizes[reg.nr] && c < 4); return 4 * (alloc.offsets[reg.nr] + reg.reg_offset) + c; } |