[Mesa-dev] [PATCH v5 3/6] mesa/st: glsl_to_tgsi: add tests for the new temporary lifetime tracker

Ilia Mirkin imirkin at alum.mit.edu
Tue Jun 27 12:12:30 UTC 2017


On Tue, Jun 27, 2017 at 8:10 AM, Gert Wollny <gw.fossdev at gmail.com> wrote:
>> > +TEST_F(LifetimeEvaluatorExactTest, SimpleMoveAddMoveTexoffset)
>> > +{
>> > +   const vector<MockCodeline> code = {
>> > +      { TGSI_OPCODE_MOV, {1}, {in0}, {}},
>> > +      { TGSI_OPCODE_MOV, {2}, {in1}, {}},
>> > +      { TGSI_OPCODE_UADD, {out0}, {},  {1,2}},
>>
>> UADD doesn't have texoffsets.
>
> The test just checks that src from textoffsets are picked up, but I
> would appreciate if you could give me a well formed TGSI instruction
> line that takes a texoffset, (I guess that TGSI_OPCODE_TEX would be the
> opcode, but the TGSI documentation doesn't give a real example).

TEX, TXF, TXD - basically all the texturing operations.


More information about the mesa-dev mailing list