diff options
author | Francisco Jerez <[email protected]> | 2016-09-01 21:25:18 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2016-09-14 14:50:54 -0700 |
commit | 1a4b7fdd88919b9ea51a4e9ce3808d85eea9fe5e (patch) | |
tree | 1d82230f5d93ba895909e8f83bf6596eefe2801c | |
parent | d6b60934aaf2d525f7d1072c0c21af8468254647 (diff) |
i965/fs: Handle arbitrary offsets in brw_reg_from_fs_reg for MRF/VGRF registers.
This restriction seemed rather artificial... Removing it actually
simplifies things slightly.
Reviewed-by: Iago Toral Quiroga <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index 8a581c9f02c..110f3f8206b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp @@ -56,7 +56,6 @@ brw_file_from_reg(fs_reg *reg) static struct brw_reg brw_reg_from_fs_reg(fs_inst *inst, fs_reg *reg, unsigned gen, bool compressed) { - assert(reg->offset / REG_SIZE == 0); struct brw_reg brw_reg; switch (reg->file) { @@ -97,14 +96,14 @@ brw_reg_from_fs_reg(fs_inst *inst, fs_reg *reg, unsigned gen, bool compressed) } brw_reg = retype(brw_reg, reg->type); - brw_reg = byte_offset(brw_reg, reg->offset % REG_SIZE); + brw_reg = byte_offset(brw_reg, reg->offset); brw_reg.abs = reg->abs; brw_reg.negate = reg->negate; break; case ARF: case FIXED_GRF: case IMM: - assert(reg->offset % REG_SIZE == 0); + assert(reg->offset == 0); brw_reg = reg->as_brw_reg(); break; case BAD_FILE: |