nv50/ir/tgsi: handle DP2 in tgsi Instruction srcMask

Solved by Tiziano Bacocco on IRC.
This commit is contained in:
Christoph Bumiller 2012-08-18 17:34:44 +02:00
parent f3a7be740d
commit c51f8e2790
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,8 @@ unsigned int Instruction::srcMask(unsigned int s) const
case TGSI_OPCODE_COS:
case TGSI_OPCODE_SIN:
return (mask & 0x8) | ((mask & 0x7) ? 0x1 : 0x0);
case TGSI_OPCODE_DP2:
return 0x3;
case TGSI_OPCODE_DP3:
return 0x7;
case TGSI_OPCODE_DP4: