/third_party/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_lowering_gv100.cpp | 38 i->sType, bld.mkImm(0), i->getSrc(2))->ftz = i->ftz; in handleCMP() 57 src[s][1] = bld.mkImm(0); in handleIADD64() 78 bld.mkMov(src2s[0], bld.mkImm(0)); in handleIMAD_HIGH() 82 src2 = bld.mkImm(0); in handleIMAD_HIGH() 114 bld.mkImm(0)); in handleIMUL() 139 bld.mkImm(0))->subOp = subOp; in handleLOP2() 146 bld.mkOp3(OP_LOP3_LUT, TYPE_U32, i->getDef(0), bld.mkImm(0), i->getSrc(0), in handleNOT() 147 bld.mkImm(0))->subOp = (uint8_t)~NV50_IR_SUBOP_LOP3_LUT_SRC1; in handleNOT() 185 met = bld.mkImm(0x3f800000); in handleSET() 187 met = bld.mkImm(0xffffffff); in handleSET() [all …]
|
D | nv50_ir_lowering_gm107.cpp | 124 Value *quad = bld.mkImm(SHFL_BOUND_QUAD); in handleManualTXD() 141 Value *lane = bld.mkImm(l); in handleManualTXD() 200 bld.mkOp3(OP_SHFL, TYPE_F32, tex->getDef(c), tex->getDef(c), bld.mkImm(0), quad); in handleManualTXD() 244 bld.mkImm(xid), bld.mkImm(SHFL_BOUND_QUAD)); in handleDFDX() 261 bld.mkOp3(OP_PERMT, TYPE_U32, tmp1, tmp0, bld.mkImm(0x4442), bld.mkImm(0)); in handlePFETCH() 262 bld.mkOp3(OP_PERMT, TYPE_U32, tmp0, tmp0, bld.mkImm(0x4440), bld.mkImm(0)); in handlePFETCH()
|
D | nv50_ir_lowering_nvc0.cpp | 245 bld.mkOp2(OP_ADD, TYPE_U32, (x32_minus_shift = bld.getSSA()), shift, bld.mkImm(0x20)) in handleShift() 248 TYPE_U32, shift, bld.mkImm(32)); in handleShift() 318 i->setSrc(1, bld.mkImm(0x2000)); in handleBREV() 923 ptr = bld.mkOp2v(OP_SHL, TYPE_U32, bld.getSSA(), ptr, bld.mkImm(2)); in loadTexHandle() 1018 bld.mkOp3(OP_INSBF, TYPE_U32, hnd, rHnd, bld.mkImm(0x1400), sHnd); in handleTEX() 1076 ticRel, bld.mkImm(i->tex.r)); in handleTEX() 1082 tscRel, bld.mkImm(i->tex.s)); in handleTEX() 1103 bld.mkOp3(OP_INSBF, TYPE_U32, src, ticRel, bld.mkImm(0x0917), src); in handleTEX() 1105 bld.mkOp3(OP_INSBF, TYPE_U32, src, tscRel, bld.mkImm(0x0710), src); in handleTEX() 1142 bld.mkImm(0x800 | ((n * 16 + c * 8) % 32)), in handleTEX() [all …]
|
D | nv50_ir_build_util.cpp | 359 BuildUtil::mkImm(uint16_t u) in mkImm() function in nv50_ir::BuildUtil 371 BuildUtil::mkImm(uint32_t u) in mkImm() function in nv50_ir::BuildUtil 387 BuildUtil::mkImm(uint64_t u) in mkImm() function in nv50_ir::BuildUtil 399 BuildUtil::mkImm(float f) in mkImm() function in nv50_ir::BuildUtil 406 return mkImm(u.u32); in mkImm() 410 BuildUtil::mkImm(double d) in mkImm() function in nv50_ir::BuildUtil 418 return mkOp1v(OP_MOV, TYPE_F32, dst ? dst : getScratch(), mkImm(f)); in loadImm() 424 return mkOp1v(OP_MOV, TYPE_F64, dst ? dst : getScratch(8), mkImm(d)); in loadImm() 430 return mkOp1v(OP_MOV, TYPE_U16, dst ? dst : getScratch(2), mkImm(u)); in loadImm() 436 return mkOp1v(OP_MOV, TYPE_U32, dst ? dst : getScratch(), mkImm(u)); in loadImm() [all …]
|
D | nv50_ir_build_util.h | 93 ImmediateValue *mkImm(float); 94 ImmediateValue *mkImm(double); 95 ImmediateValue *mkImm(uint16_t); 96 ImmediateValue *mkImm(uint32_t); 97 ImmediateValue *mkImm(uint64_t); 99 ImmediateValue *mkImm(int i) { return mkImm((uint32_t)i); } in mkImm() function
|
D | nv50_ir_lowering_nv50.cpp | 112 bld->mkImm(src1.reg.data.u32 & 0xffff)); in expandIntegerMUL() 115 src1imm ? bld->mkImm(src1.reg.data.u32 >> 16) : b[1]); in expandIntegerMUL() 123 i[7] = bld->mkOp2(OP_SHL, fTy, t[2], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL() 140 i[8] = bld->mkOp2(OP_SHR, fTy, r[0], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL() 471 arl = bld.mkOp2(OP_SHL, TYPE_U32, i->getDef(0), bld.getSSA(), bld.mkImm(0)); in handleAddrDef() 538 bf = bld.mkOp2v(OP_ADD, TYPE_U32, bld.getSSA(), bf, bld.mkImm(-2)); in handleDIV() 746 bld.mkOp2v(OP_SHL, TYPE_U32, t, ms, bld.mkImm(3)), in loadMsInfo() 748 bld.mkImm(3)); in loadMsInfo() 1290 bld.mkOp2(OP_OR, TYPE_U32, def, def, bld.mkImm(0x00000001)); in handleRDSV() 1306 bld.mkOp2(OP_AND, TYPE_U32, def, tid, bld.mkImm(0x0000ffff)); in handleRDSV() [all …]
|
D | nv50_ir_lowering_helper.cpp | 70 bld.mkOp2(OP_SUB, dTy, neg, bld.mkImm((uint64_t)0), insn->getSrc(0)); in handleABS() 186 insn->setSrc(0, bld.mkImm((uint64_t)0)); in handleNEG()
|
D | nv50_ir_peephole.cpp | 1007 bld.mkOp2(OP_SHL, ty, res, a, bld.mkImm(shl)); in createMul() 1026 Instruction *insn = bld.mkOp3(OP_SHLADD, TYPE_U32, res, a, bld.mkImm(shl), a); in createMul() 1041 a, bld.mkImm((uint32_t)b), c ? c : bld.mkImm(0)); in createMul() 1042 bld.mkOp3(OP_XMAD, TYPE_U32, def, a, bld.mkImm((uint32_t)b), tmp)->subOp = in createMul() 1073 newi = bld.mkMov(def, bld.mkImm((uint32_t)(val & mask)), TYPE_U32); in opnd() 1090 TYPE_S32, i->getSrc(t), bld.mkImm(0)); in opnd() 1228 i->setSrc(1, bld.mkImm(util_logbase2(imm0.reg.data.u32))); in opnd() 1251 bld.mkOp2(OP_SHR, TYPE_U32, tA, tB, bld.mkImm(r)); in opnd() 1257 bld.mkOp2(OP_SHR, TYPE_U32, i->getDef(0), tB, bld.mkImm(s)); in opnd() 1282 bld.mkOp2(OP_SHR, TYPE_S32, tB, tA, bld.mkImm(l - 1)); in opnd() [all …]
|
D | nv50_ir_from_nir.cpp | 203 zero = mkImm((uint32_t)0); in Converter() 1811 mkOp3v(OP_INSBF, TYPE_U32, newDefs[0], offs[1], mkImm(0x1010), offs[0]); in visit() 1819 mkOp3(OP_SELP, TYPE_U32, sample, mkImm(0), getSrc(&insn->src[0], 0), mkImm(0)) in visit() 1929 mkOp1(OP_VOTE, TYPE_U32, tmp, mkImm(1))->subOp = NV50_IR_SUBOP_VOTE_ANY; in visit() 1936 mkOp3(OP_SHFL, dType, newDefs[i], getSrc(&insn->src[0], i), tmp, mkImm(0x1f)) in visit() 1950 mkImm(baseVertex), indirectVertex); in visit() 1985 mkOp1(getOperation(op), TYPE_U32, NULL, mkImm(idx))->fixed = 1; in visit() 1992 mkOp1(getOperation(op), TYPE_U32, NULL, mkImm(idx))->fixed = 1; in visit() 2325 Instruction *bar = mkOp2(OP_BAR, TYPE_U32, NULL, mkImm(0), mkImm(0)); in visit() 2641 mkOp3(OP_INSBF, TYPE_U32, newDefs[0], tmpH, mkImm(0x1010), tmpL); in visit() [all …]
|
D | nv50_ir_from_tgsi.cpp | 1883 mkImm(index), rel); in getVertexBase() 2004 return mkOp2v(OP_SHL, TYPE_U32, getSSA(4, FILE_ADDRESS), index, mkImm(4)); in shiftAddress() 3105 mkOp3(OP_SELP, TYPE_U32, sample, mkImm(0), fetchSrc(1, 0), mkImm(0)) in handleINTERP() 3127 offs[1], mkImm(0x1010), offs[0]); in handleINTERP() 3460 mkOp1(OP_VOTE, TYPE_U32, val0, mkImm(1))->subOp = NV50_IR_SUBOP_VOTE_ANY; in handleInstruction() 3471 geni = mkOp3(op, dstTy, dst0[c], fetchSrc(0, c), src1, mkImm(0x1f)); in handleInstruction() 3576 mkOp3(OP_INSBF, TYPE_U32, dst0[c], val1, mkImm(0x1010), val0); in handleInstruction() 3604 src0 = mkImm(stream); in handleInstruction() 3788 geni = mkOp2(OP_BAR, TYPE_U32, NULL, mkImm(0), mkImm(0)); in handleInstruction() 3861 mkOp3(OP_INSBF, TYPE_U32, val0, src2, mkImm(0x808), src1); in handleInstruction() [all …]
|