/third_party/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_from_common.cpp | 89 TYPE_F32, info->io.ucpBase + i * 16 + c * 4); in handleUserClipPlanes() 90 Value *ucp = mkLoadv(TYPE_F32, sym, NULL); in handleUserClipPlanes() 92 res[i] = mkOp2v(OP_MUL, TYPE_F32, getScratch(), clipVtx[c], ucp); in handleUserClipPlanes() 94 mkOp3(OP_MAD, TYPE_F32, res[i], clipVtx[c], ucp, res[i]); in handleUserClipPlanes() 104 mkSymbol(FILE_SHADER_OUTPUT, 0, TYPE_F32, info_out->out[n].slot[c] * 4); in handleUserClipPlanes() 105 mkStore(OP_EXPORT, TYPE_F32, sym, NULL, res[i]); in handleUserClipPlanes()
|
D | nv50_ir_lowering_gm107.cpp | 146 bld.mkOp3(OP_SHFL, TYPE_F32, arr, i->getSrc(0), lane, quad); in handleManualTXD() 148 bld.mkOp3(OP_SHFL, TYPE_F32, shadow, i->getSrc(array + dim + indirect), lane, quad); in handleManualTXD() 153 bld.mkOp3(OP_SHFL, TYPE_F32, crd[c], i->getSrc(c + array), lane, quad); in handleManualTXD() 158 bld.mkOp3(OP_SHFL, TYPE_F32, tmp, i->dPdx[c].get(), lane, quad); in handleManualTXD() 159 add = bld.mkOp2(OP_QUADOP, TYPE_F32, crd[c], tmp, crd[c]); in handleManualTXD() 166 bld.mkOp3(OP_SHFL, TYPE_F32, tmp, i->dPdy[c].get(), lane, quad); in handleManualTXD() 167 add = bld.mkOp2(OP_QUADOP, TYPE_F32, crd[c], tmp, crd[c]); in handleManualTXD() 175 src[c] = bld.mkOp1v(OP_ABS, TYPE_F32, bld.getSSA(), crd[c]); in handleManualTXD() 177 bld.mkOp2(OP_MAX, TYPE_F32, val, src[0], src[1]); in handleManualTXD() 178 bld.mkOp2(OP_MAX, TYPE_F32, val, src[2], val); in handleManualTXD() [all …]
|
D | nv50_ir_from_tgsi.cpp | 632 return nv50_ir::TYPE_F32; in inferSrcType() 665 return nv50_ir::TYPE_F32; in inferDstType() 1842 Instruction *insn = new_Instruction(func, op, TYPE_F32); in interpolate() 2203 mkOp2(OP_MUL, TYPE_F32, dotp, src0, src1) in buildDot() 2209 mkOp3(OP_MAD, TYPE_F32, dotp, src0, src1, dotp) in buildDot() 2296 proj = mkOp1v(OP_RCP, TYPE_F32, getSSA(), proj); in loadProjTexCoords() 2313 proj = mkOp1v(OP_RCP, TYPE_F32, getSSA(), fetchSrc(0, 3)); in loadProjTexCoords() 2317 dst[c] = mkOp2v(OP_MUL, TYPE_F32, getSSA(), src[c], proj); in loadProjTexCoords() 2471 Value *x = mkOp1v(OP_RDSV, TYPE_F32, getScratch(), mkSysVal(SV_POSITION, 0)); in handleFBFETCH() 2472 Value *y = mkOp1v(OP_RDSV, TYPE_F32, getScratch(), mkSysVal(SV_POSITION, 1)); in handleFBFETCH() [all …]
|
D | nv50_ir_target_nvc0.cpp | 229 opInfo[i].srcTypes = 1 << (int)TYPE_F32; in initOpInfo() 230 opInfo[i].dstTypes = 1 << (int)TYPE_F32; in initOpInfo() 410 case TYPE_F32: in insnCanLoad() 433 if (i->op == OP_ADD && i->sType == TYPE_F32) { in insnCanLoad() 502 if (insn->sType != TYPE_F32) in isModSupported() 550 if (insn->op == OP_ADD && insn->sType == TYPE_F32) { in isSatSupported() 556 return insn->dType == TYPE_F32; in isSatSupported() 592 if (i->op == OP_MUL && i->dType != TYPE_F32) in getLatency() 619 if (i->dType == TYPE_F32) { in getThroughput() 709 return (a->dType == TYPE_F32 || a->op == OP_ADD || in canDualIssue() [all …]
|
D | nv50_ir_lowering_nv50.cpp | 522 bld.mkCvt(OP_CVT, TYPE_F32, af, ty, div->getSrc(0)); in handleDIV() 523 bld.mkCvt(OP_CVT, TYPE_F32, bf, ty, div->getSrc(1)); in handleDIV() 537 bf = bld.mkOp1v(OP_RCP, TYPE_F32, bld.getSSA(), bf); in handleDIV() 540 bld.mkOp2(OP_MUL, TYPE_F32, (qf = bld.getSSA()), af, bf)->rnd = ROUND_Z; in handleDIV() 541 bld.mkCvt(OP_CVT, ty, (q0 = bld.getSSA()), TYPE_F32, qf)->rnd = ROUND_Z; in handleDIV() 548 bld.mkCvt(OP_CVT, TYPE_F32, (aR = bld.getSSA()), TYPE_U32, aRf); in handleDIV() 550 bld.mkOp2(OP_MUL, TYPE_F32, (qRf = bld.getSSA()), aR, bf)->rnd = ROUND_Z; in handleDIV() 551 bld.mkCvt(OP_CVT, TYPE_U32, (qR = bld.getSSA()), TYPE_F32, qRf) in handleDIV() 788 src[c] = bld.mkOp1v(OP_ABS, TYPE_F32, bld.getSSA(), i->getSrc(c)); in handleTEX() 790 bld.mkOp2(OP_MAX, TYPE_F32, val, src[0], src[1]); in handleTEX() [all …]
|
D | nv50_ir_target_gv100.cpp | 56 opInfo[i].srcTypes = 1 << (int)TYPE_F32; in initOpInfo() 57 opInfo[i].dstTypes = 1 << (int)TYPE_F32; in initOpInfo() 214 if (i->dType == TYPE_F32) in getOpInfo() 282 if (i->dType == TYPE_F32) in getOpInfo() 309 if (i->dType == TYPE_F32) in getOpInfo() 319 if (i->dType == TYPE_F32) in getOpInfo() 349 if (i->dType == TYPE_F32) in getOpInfo() 413 case TYPE_F32: in isSatSupported() 444 if (ty == TYPE_F32) { in isOpSupported()
|
D | nv50_ir_lowering_nvc0.cpp | 145 i->setType(TYPE_F32); in handleRCPRSQ() 157 assert(i->sType == TYPE_F32); in handleFTZ() 335 if (i->sType == TYPE_F32 && prog->getType() != Program::TYPE_COMPUTE) in visit() 341 if (i->sType != TYPE_F32) in visit() 945 src[c] = bld.mkOp1v(OP_ABS, TYPE_F32, bld.getSSA(), i->getSrc(c)); in handleTEX() 947 bld.mkOp2(OP_MAX, TYPE_F32, val, src[0], src[1]); in handleTEX() 948 bld.mkOp2(OP_MAX, TYPE_F32, val, src[2], val); in handleTEX() 949 bld.mkOp1(OP_RCP, TYPE_F32, val, val); in handleTEX() 951 i->setSrc(c, bld.mkOp2v(OP_MUL, TYPE_F32, bld.getSSA(), in handleTEX() 1028 DataType sTy = (i->op == OP_TXF) ? TYPE_U32 : TYPE_F32; in handleTEX() [all …]
|
D | nv50_ir_lowering_gv100.cpp | 183 if (i->sType == TYPE_F32) in handleSET() 252 if (i->sType == TYPE_F32 && i->dType != TYPE_F16 && in visit() 374 bld.mkCvt(OP_CVT, TYPE_F32, i->getDef(0), i->sType, i->getSrc(0))-> in handleI2I() 376 bld.mkCvt(OP_CVT, i->dType, i->getDef(0), TYPE_F32, i->getDef(0)); in handleI2I() 409 ipa = bld.mkOp2(OP_LINTERP, TYPE_F32, i->getDef(0), i->getSrc(0), src2); in handlePINTERP() 411 mul = bld.mkOp2(OP_MUL, TYPE_F32, i->getDef(0), i->getDef(0), i->getSrc(1)); in handlePINTERP()
|
D | nv50_ir_target_nv50.cpp | 145 opInfo[i].srcTypes = 1 << (int)TYPE_F32; in initOpInfo() 146 opInfo[i].dstTypes = 1 << (int)TYPE_F32; in initOpInfo() 492 if (insn->sType != TYPE_F32) in isModSupported() 520 if (insn->dType != TYPE_F32) in isSatSupported() 553 if (i->dType == TYPE_F32) { in getThroughput()
|
D | nv50_ir_emit_nv50.cpp | 583 case TYPE_F32: // fall through in emitLoadStoreSizeLG() 609 case TYPE_F32: in emitLoadStoreSizeCS() 960 case TYPE_F32: code[0] |= 0x80000000; break; in emitMINMAX() 1309 case TYPE_F32: code[0] |= 0x80000000; break; in emitSET() 1379 case TYPE_F32: code[1] = 0xc4400000; break; in emitCVT() 1390 case TYPE_F32: code[1] = 0x8c400000; break; in emitCVT() 1399 case TYPE_F32: code[1] = 0x84400000; break; in emitCVT() 1405 case TYPE_F32: in emitCVT() 1410 case TYPE_F32: code[1] = 0xc4004000; break; in emitCVT() 1426 case TYPE_F32: code[1] = 0x8c004000; break; in emitCVT() [all …]
|
D | nv50_ir_inlines.h | 64 case TYPE_F32: in typeSizeof() 88 case TYPE_F32: in typeSizeofLog2() 116 return flt ? TYPE_F32 : (sgn ? TYPE_S32 : TYPE_U32);
|
D | nv50_ir_peephole.cpp | 486 case TYPE_F32: in applyTo() 580 if (i->dnz && i->dType == TYPE_F32) { in expr() 587 case TYPE_F32: in expr() 611 case TYPE_F32: res.data.f32 = a->data.f32 / b->data.f32; break; in expr() 621 case TYPE_F32: res.data.f32 = a->data.f32 + b->data.f32; break; in expr() 631 case TYPE_F32: res.data.f32 = a->data.f32 - b->data.f32; break; in expr() 641 case TYPE_F32: res.data.f32 = pow(a->data.f32, b->data.f32); break; in expr() 649 case TYPE_F32: res.data.f32 = MAX2(a->data.f32, b->data.f32); break; in expr() 659 case TYPE_F32: res.data.f32 = MIN2(a->data.f32, b->data.f32); break; in expr() 826 case TYPE_F32: in expr() [all …]
|
D | nv50_ir.cpp | 339 reg.type = TYPE_F32; in ImmediateValue() 400 case TYPE_F32: in isInteger() 417 case TYPE_F32: return reg.data.u32 & (1 << 31); in isNegative() 453 case TYPE_F32: in applyLog2() 468 if (reg.type != TYPE_F32) in compare() 602 dType = sType = TYPE_F32; in Instruction() 910 : Instruction(fn, op, TYPE_F32), tex() in TexInstruction() 1112 : Instruction(fn, op, TYPE_F32) in CmpInstruction()
|
D | nv50_ir_emit_gk110.cpp | 208 if (ty == TYPE_F32) in isLIMM() 335 if (i->sType == TYPE_F32) { in setShortImmediate() 496 if (isLIMM(i->src(1), TYPE_F32)) { in emitFMAD() 579 if (isLIMM(i->src(1), TYPE_F32)) { in emitFMUL() 658 if (isLIMM(i->src(1), TYPE_F32)) { in emitFADD() 1016 case TYPE_F32: in emitMINMAX() 1115 case TYPE_F32: op2 = 0x1d8; op1 = 0xb58; break; in emitSET() 1142 case TYPE_F32: op2 = 0x000; op1 = 0x800; break; in emitSET() 1161 if (i->dType == TYPE_F32) { in emitSET() 1198 if (i->dType == TYPE_F32) { in emitSLCT() [all …]
|
D | nv50_ir_build_util.cpp | 156 DataType ty = TYPE_F32; in mkInterp() 268 Instruction *quadop = mkOp2(OP_QUADOP, TYPE_F32, def, src0, src1); in mkQuadop() 418 return mkOp1v(OP_MOV, TYPE_F32, dst ? dst : getScratch(), mkImm(f)); in loadImm() 475 sym->reg.type = TYPE_F32; in mkSysVal()
|
D | nv50_ir_emit_gv100.cpp | 880 case TYPE_F32 : dType = 3; break; in emitATOM() 1134 case TYPE_F32: dType = 3; break; in emitRED() 1454 case TYPE_F32: type = 3; break; in emitSUATOM() 1733 if (insn->dType == TYPE_F32) in emitInstruction() 1837 if (insn->dType == TYPE_F32) in emitInstruction() 1872 if (insn->dType == TYPE_F32) { in emitInstruction() 1891 if (insn->dType == TYPE_F32) in emitInstruction() 1930 if (insn->dType == TYPE_F32) { in emitInstruction()
|
D | nv50_ir_from_nir.cpp | 1375 fragCoord[3] = mkOp1v(OP_RDSV, TYPE_F32, getSSA(), sv); in visit() 1376 fp.position = mkOp1v(OP_RCP, TYPE_F32, fragCoord[3], fragCoord[3]); in visit() 1661 src = mkOp1v(OP_SAT, TYPE_F32, getScratch(), src); in visit() 1695 Value *x = mkOp1v(OP_RDSV, TYPE_F32, getSSA(), mkSysVal(SV_POSITION, 0)); in visit() 1696 Value *y = mkOp1v(OP_RDSV, TYPE_F32, getSSA(), mkSysVal(SV_POSITION, 1)); in visit() 1697 mkCvt(OP_CVT, TYPE_U32, srcs[0], TYPE_F32, x)->rnd = ROUND_Z; in visit() 1698 mkCvt(OP_CVT, TYPE_U32, srcs[1], TYPE_F32, y)->rnd = ROUND_Z; in visit() 1806 mkOp2(OP_MIN, TYPE_F32, offs[c], getSrc(&insn->src[0], c), loadImm(NULL, 0.4375f)); in visit() 1807 mkOp2(OP_MAX, TYPE_F32, offs[c], offs[c], loadImm(NULL, -0.5f)); in visit() 1808 mkOp2(OP_MUL, TYPE_F32, offs[c], offs[c], loadImm(NULL, 4096.0f)); in visit() [all …]
|
D | nv50_ir_emit_nvc0.cpp | 214 if (ty == TYPE_F32) in isLIMM() 542 if (isLIMM(i->src(1), TYPE_F32)) { in emitFMAD() 599 if (isLIMM(i->src(1), TYPE_F32)) { in emitFMUL() 669 if (isLIMM(i->src(1), TYPE_F32)) { in emitFADD() 1201 if (i->sType == TYPE_F32) in emitSET() 1235 case TYPE_F32: in emitSLCT() 1814 case TYPE_F32: in emitLoadStoreType() 2154 if (i->dType == TYPE_F32) { in emitATOM() 2995 if (i->dType == TYPE_F32) { in getMinEncodingSize()
|
D | nv50_ir_emit_gm107.cpp | 347 if (insn->sType == TYPE_F32 || insn->sType == TYPE_F16) { in emitIMMD() 1226 emitField(0x34, 1, insn->dType == TYPE_F32); in emitDSET() 1614 emitField(0x34, 1, insn->dType == TYPE_F32); in emitFSET() 2113 emitField(0x2c, 1, insn->dType == TYPE_F32); in emitISET() 2660 case TYPE_F32: dType = 3; break; in emitATOM() 2729 case TYPE_F32: dType = 3; break; in emitRED() 3371 case TYPE_F32: type = 3; break; in emitSUREDx()
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | instr-a3xx.h | 355 TYPE_F32 = 1, enumerator 368 case TYPE_F32: in type_size() 388 return (type == TYPE_F32) || (type == TYPE_F16); in type_float()
|
D | ir3_image.c | 172 return bit_size == 16 ? TYPE_F16 : TYPE_F32; in ir3_get_type_for_image_intrinsic()
|
D | ir3.h | 1191 case TYPE_F32: in half_type() 1212 return TYPE_F32; in full_type() 1217 case TYPE_F32: in full_type() 1382 return TYPE_F32; in ir3_output_conv_type() 1454 return TYPE_F32; in ir3_output_conv_src_type() 1762 return create_uniform_typed(block, n, TYPE_F32); in create_uniform()
|
D | ir3_compiler_nir.c | 142 src_type = TYPE_F32; in create_cov() 209 dst_type = TYPE_F32; in create_cov() 401 create_immed_typed(b, 0, bs[0] == 16 ? TYPE_F16 : TYPE_F32), 0); in emit_alu() 480 dst[0]->cat5.type = TYPE_F32; in emit_alu() 484 dst[0]->cat5.type = TYPE_F32; in emit_alu() 489 dst[0]->cat5.type = TYPE_F32; in emit_alu() 494 dst[0]->cat5.type = TYPE_F32; in emit_alu() 1606 xyzw[i] = ir3_COV(b, xyzw[i], TYPE_U32, TYPE_F32); in get_frag_coord() 1650 nir_dest_bit_size(intr->dest) == 16 ? TYPE_F16 : TYPE_F32); in emit_intrinsic() 1657 nir_dest_bit_size(intr->dest) == 16 ? TYPE_F16 : TYPE_F32, in emit_intrinsic() [all …]
|
D | ir3_parser.y | 123 return TYPE_F32; in parse_type() 946 cat5_opc_dsxypp: T_OP_DSXPP_1 { new_instr(OPC_DSXPP_1)->cat5.type = TYPE_F32; } 947 | T_OP_DSYPP_1 { new_instr(OPC_DSYPP_1)->cat5.type = TYPE_F32; } 1273 | T_TYPE_F32 { $$ = TYPE_F32; }
|
D | ir3_print.c | 57 [TYPE_F32] = "f32", in type_name()
|