[Mesa-dev] [PATCH 5/8] i965: Implement FS backend for ARB_sample_shading
stereotype441 at gmail.com
Sat Oct 19 23:37:36 CEST 2013
On 18 October 2013 10:30, Anuj Phogat <anuj.phogat at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mesa-dev