Home | History | Annotate | Download | only in codegen

Lines Matching refs:tex

246       const struct tgsi_instruction_texture *tex = &insn->Texture;
255 switch (tex->Texture) {
336 static nv50_ir::TexTarget translateTexture(uint tex)
338 switch (tex) {
488 NV50_IR_OPCODE_CASE(TEX, TEX);
490 NV50_IR_OPCODE_CASE(TXP, TEX);
547 NV50_IR_OPCODE_CASE(SAMPLE, TEX);
549 NV50_IR_OPCODE_CASE(SAMPLE_C, TEX);
550 NV50_IR_OPCODE_CASE(SAMPLE_C_LZ, TEX);
1464 Converter::setTexRS(TexInstruction *tex, unsigned int& s, int R, int S)
1473 tex->setTexture(tgsi.getTexture(code, R), rIdx, sIdx);
1476 tex->tex.rIndirectSrc = s;
1477 tex->setSrc(s++, fetchSrc(tgsi.getSrc(R).getIndirect(0), 0, NULL));
1480 tex->tex.sIndirectSrc = s;
1481 tex->setSrc(s++, fetchSrc(tgsi.getSrc(S).getIndirect(0), 0, NULL));
1488 TexInstruction *tex = new_TexInstruction(func, OP_TXQ);
1489 tex->tex.query = query;
1495 tex->tex.mask |= 1 << c;
1496 tex->setDef(d++, dst0[c]);
1498 tex->setSrc((c = 0), fetchSrc(0, 0)); // mip level
1500 setTexRS(tex, c, 1, -1);
1502 bb->insertTail(tex);
1544 // order of TGSI TEX sources: x y z layer shadow lod/bias
1603 texi->tex.mask |= 1 << c;
1618 texi->tex.levelZero = true;
1631 texi->tex.target = tgsi.getTexture(code, R);
1636 texi->tex.mask |= 1 << c;
1639 for (c = 0; c < texi->tex.target.getArgCount(); ++c)
1647 texi->tex.offset[s][c] = tgsi.getTexOffset(s).getValueU32(c, info);
1648 if (texi->tex.offset[s][c])
1649 texi->tex.useOffsets = s + 1;