diff options
author | Kenneth Graunke <[email protected]> | 2014-02-10 14:46:49 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-02-11 02:21:26 -0800 |
commit | f948ad2a070a3b1cd69e7feca6eb3d5764438d9e (patch) | |
tree | 8a191fbf309a82b6983600039faac024a8ebf48e /src/mesa | |
parent | 08fd34c8a3c55ffc74c28bf1e7fdabd66012cd26 (diff) |
i965/fs: Simplify FS_OPCODE_SET_SAMPLE_ID stride mashing a bit.
stride(brw_vec1_reg(...) ...) takes some register, changes the strides,
then changes the strides again. Let's do it once.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index 6d211e11412..26913d292e3 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp @@ -1156,8 +1156,7 @@ fs_generator::generate_set_sample_id(fs_inst *inst, brw_push_insn_state(p); brw_set_compression_control(p, BRW_COMPRESSION_NONE); brw_set_mask_control(p, BRW_MASK_DISABLE); - struct brw_reg reg = stride(retype(brw_vec1_reg(src1.file, src1.nr, 0), - BRW_REGISTER_TYPE_UW), 1, 4, 0); + struct brw_reg reg = retype(stride(src1, 1, 4, 0), BRW_REGISTER_TYPE_UW); brw_ADD(p, dst, src0, reg); if (dispatch_width == 16) brw_ADD(p, offset(dst, 1), offset(src0, 1), suboffset(reg, 2)); |