[Mesa-dev] [PATCH v2] nv50/ir: emit VOTE instruction

Ilia Mirkin imirkin at alum.mit.edu
Sun Feb 28 17:27:42 UTC 2016


On Sun, Feb 28, 2016 at 12:25 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
>
> On 02/28/2016 06:24 PM, Ilia Mirkin wrote:
>>
>> On Sun, Feb 28, 2016 at 12:20 PM, Samuel Pitoiset
>> <samuel.pitoiset at gmail.com> wrote:
>>> +void
>>> +CodeEmitterNVC0::emitVOTE(const Instruction *i)
>>> +{
>>> +   assert(i->src(0).getFile() == FILE_PREDICATE &&
>>> +          i->def(1).getFile() == FILE_PREDICATE);
>>> +
>>> +   code[0] = 0x00000004 | (i->subOp << 5);
>>> +   code[1] = 0x48000000;
>>> +
>>> +   emitPredicate(i);
>>> +
>>> +   defId(i->def(0), 14);
>>> +   defId(i->def(1), 32 + 22);
>>> +   if (i->src(0).mod == Modifier(NV50_IR_MOD_NOT))
>>> +         code[0] |= 1 << 23;
>>
>>
>> This inversion logic does not seem to be present for GK110/GM107...
>> did I miss it?
>
>
> Yeah, according to envydis this inversion logic does not seem to be present
> on GK110/GM107.

That's just someone's laziness. Go bit-hunting in nvdisasm :)

  -ilia


More information about the mesa-dev mailing list