On 18 October 2013 10:30, Anuj Phogat <anuj.pho...@gmail.com> wrote: > I know we can specify stride if we have a brw_reg :- > fs_reg (stride(brw_vec1_grf(0, 0), 2, 4, 0)); > > But I could not find a reliable way to use stride if we have a fs_reg. > That's why I used OR to get the desired result. >
The right way to do this, IMHO, is to create a special back-end instruction opcode to do the work. That way you can put the call to stride() in fs_generator, and it will happen after registers have been assigned and everything has been turned into brw_reg's. See for example what happens in FS_OPCODE_SET_SIMD4X2_OFFSET, which does a similar thing except that instead of changing the stride of the register it changes its width.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev