Home | History | Annotate | Download | only in codegen

Lines Matching defs:tgsi

24 #include "tgsi/tgsi_dump.h"
25 #include "tgsi/tgsi_scan.h"
32 namespace tgsi {
697 INFO("unknown TGSI token type: %d\n", parse.FullToken.Token.Type);
749 INFO("unhandled TGSI property %d\n", prop->Property.PropertyName);
1004 Instruction::getTexture(const tgsi::Source *code, int s) const
1018 } // namespace tgsi
1027 Converter(Program *, const tgsi::Source *);
1046 Value *fetchSrc(const tgsi::Instruction::SrcRegister src, int c, Value *ptr);
1047 void storeDst(const tgsi::Instruction::DstRegister dst, int c,
1053 Symbol *srcToSym(tgsi::Instruction::SrcRegister, int c);
1054 Symbol *dstToSym(tgsi::Instruction::DstRegister, int c);
1064 // R,S,L,C,Dx,Dy encode TGSI sources for respective values (0xSf for auto)
1072 Value *interpolate(tgsi::Instruction::SrcRegister, int c, Value *ptr);
1100 const struct tgsi::Source *code;
1110 tgsi::Instruction tgsi;
1136 Converter::srcToSym(tgsi::Instruction::SrcRegister src, int c)
1147 Converter::dstToSym(tgsi::Instruction::DstRegister dst, int c)
1158 Symbol *sym = new_Symbol(prog, tgsi::translateFile(tgsiFile));
1170 sym->setSV(tgsi::translateSysVal(info->sv[idx].sn), c);
1203 Converter::interpolate(tgsi::Instruction::SrcRegister src, int c, Value *ptr)
1229 Modifier m = tgsi.getSrc(s).getMod(c);
1230 DataType ty = tgsi.inferSrcType();
1246 const int index = tgsi.getSrc(s).getIndex(1);
1248 if (tgsi.getSrc(s).isIndirect(1))
1249 rel = fetchSrc(tgsi.getSrc(s).getIndirect(1), 0, NULL);
1262 tgsi::Instruction::SrcRegister src = tgsi.getSrc(s);
1310 assert(!"invalid/unhandled TGSI source file");
1316 Converter::fetchSrc(tgsi::Instruction::SrcRegister src, int c, Value *ptr)
1353 const tgsi::Instruction::DstRegister dst = tgsi.getDst(d);
1373 const tgsi::Instruction::DstRegister dst = tgsi.getDst(d);
1375 switch (tgsi.getSaturate()) {
1404 Converter::storeDst(const tgsi::Instruction::DstRegister dst, int c,
1469 rIdx = tgsi.getSrc(R).getIndex(0);
1471 sIdx = tgsi.getSrc(S).getIndex(0);
1473 tex->setTexture(tgsi.getTexture(code, R), rIdx, sIdx);
1475 if (tgsi.getSrc(R).isIndirect(0)) {
1477 tex->setSrc(s++, fetchSrc(tgsi.getSrc(R).getIndirect(0), 0, NULL));
1479 if (S >= 0 && tgsi.getSrc(S).isIndirect(0)) {
1481 tex->setSrc(s++, fetchSrc(tgsi.getSrc(S).getIndirect(0), 0, NULL));
1544 // order of TGSI TEX sources: x y z layer shadow lod/bias
1553 TexInstruction *texi = new_TexInstruction(func, tgsi.getOP());
1555 TexInstruction::Target tgt = tgsi.getTexture(code, R);
1577 if (tgsi.getOpcode() == TGSI_OPCODE_TXP && !tgt.isCube() && !tgt.isArray()) {
1617 if (tgsi.getOpcode() == TGSI_OPCODE_SAMPLE_C_LZ)
1628 TexInstruction *texi = new_TexInstruction(func, tgsi.getOP());
1631 texi->tex.target = tgsi.getTexture(code, R);
1645 for (s = 0; s < tgsi.getNumTexOffsets(); ++s) {
1647 texi->tex.offset[s][c] = tgsi.getTexOffset(s).getValueU32(c, info);
1660 unsigned int mask = tgsi.getDst(0).getMask();
1719 tgsi::Instruction insn(&code->insns[ip]);
1734 tgsi = tgsi::Instruction(insn);
1736 bool useScratchDst = tgsi.checkDstSrcAliasing();
1738 operation op = tgsi.getOP();
1739 dstTy = tgsi.inferDstType();
1740 srcTy = tgsi.inferSrcType();
1742 unsigned int mask = tgsi.dstCount() ? tgsi.getDst(0).getMask() : 0;
1744 if (tgsi.dstCount()) {
1751 switch (tgsi.getOpcode()) {
1775 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
1784 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
1802 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1810 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1814 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
1821 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1827 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1885 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1890 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1895 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1902 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1919 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
1931 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
1949 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
1963 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
1975 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
1983 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
1988 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
2011 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi) {
2014 mkCmp(op, tgsi.getSetCond(), dstTy, dst0[c], src0, src1);
2055 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
2060 FOR_EACH_DST_ENABLED_CHANNEL(0, c, tgsi)
2066 src0 = tgsi.srcCount() ?
2067 mkImm(tgsi.getSrc(0).getValueU32(0, info)) : zero;
2190 Subroutine *s = getSubroutine(tgsi.getLabel());
2232 ERROR("unhandled TGSI opcode: %u\n", tgsi.getOpcode());
2237 if (tgsi.dstCount()) {
2296 Converter::Converter(Program *ir, const tgsi::Source *code) : BuildUtil(ir),
2298 tgsi(NULL),
2372 // only include values with a matching TGSI register
2445 tgsi::Source src(info);