Browse Source

nvfx: add SIN and COS in vertprog

tags/mesa-7.9-rc1
Luca Barbieri 16 years ago
parent
commit
b385a31452
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/gallium/drivers/nvfx/nvfx_vertprog.c

+ 6
- 0
src/gallium/drivers/nvfx/nvfx_vertprog.c View File

case TGSI_OPCODE_ARL: case TGSI_OPCODE_ARL:
arith(vpc, VEC, ARL, dst, mask, src[0], none, none); arith(vpc, VEC, ARL, dst, mask, src[0], none, none);
break; break;
case TGSI_OPCODE_COS:
arith(vpc, SCA, COS, dst, mask, none, none, src[0]);
break;
case TGSI_OPCODE_DP3: case TGSI_OPCODE_DP3:
arith(vpc, VEC, DP3, dst, mask, src[0], src[1], none); arith(vpc, VEC, DP3, dst, mask, src[0], src[1], none);
break; break;
case TGSI_OPCODE_SGT: case TGSI_OPCODE_SGT:
arith(vpc, VEC, SGT, dst, mask, src[0], src[1], none); arith(vpc, VEC, SGT, dst, mask, src[0], src[1], none);
break; break;
case TGSI_OPCODE_SIN:
arith(vpc, SCA, SIN, dst, mask, none, none, src[0]);
break;
case TGSI_OPCODE_SLE: case TGSI_OPCODE_SLE:
arith(vpc, VEC, SLE, dst, mask, src[0], src[1], none); arith(vpc, VEC, SLE, dst, mask, src[0], src[1], none);
break; break;

Loading…
Cancel
Save