MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / gteDPCT

Function gteDPCT

pcsx2/IopGte.cpp:2461–2589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2459}
2460
2461void gteDPCT() {
2462 // unsigned long C,R,G,B;
2463 // double RR0,GG0,BB0;
2464#ifdef GTE_DUMP
2465 static int sample = 0; sample++;
2466#endif
2467#ifdef GTE_LOG
2468 GTE_LOG("GTE_DPCT\n");
2469#endif
2470
2471#ifdef GTE_DUMP
2472 if (sample < 100)
2473 {
2474 G_OP("DPCT", 17);
2475 G_SD(8);
2476
2477 G_SD(20);
2478 G_SD(21);
2479 G_SD(22);
2480
2481 G_SC(21);
2482 G_SC(22);
2483 G_SC(23);
2484 }
2485#endif
2486 /* gteFLAG = 0;
2487
2488 C = gteCODE0;
2489 R = gteR0 * 16.0;
2490 G = gteG0 * 16.0;
2491 B = gteB0 * 16.0;
2492
2493 GTE_DPCS();
2494
2495 C = gteCODE0;
2496 R = gteR0 * 16.0;
2497 G = gteG0 * 16.0;
2498 B = gteB0 * 16.0;
2499
2500 GTE_DPCS();
2501
2502 C = gteCODE0;
2503 R = gteR0 * 16.0;
2504 G = gteG0 * 16.0;
2505 B = gteB0 * 16.0;
2506
2507 GTE_DPCS();
2508
2509 if (gteFLAG & 0x7f87e000) gteFLAG|=0x80000000;*/
2510 /* gteFLAG = 0;
2511
2512 gteMAC1 = NC_OVERFLOW1((gteR0 * 16.0f) + gteIR0 * limA1S(gteRFC - (gteR0 * 16.0f)));
2513 gteMAC2 = NC_OVERFLOW2((gteG0 * 16.0f) + gteIR0 * limA2S(gteGFC - (gteG0 * 16.0f)));
2514 gteMAC3 = NC_OVERFLOW3((gteB0 * 16.0f) + gteIR0 * limA3S(gteBFC - (gteB0 * 16.0f)));
2515 */
2516 /* gteMAC1 = (gteR0<<4) + ( (gteIR0*(signed short)limA1S(gteRFC-(gteR0<<4)) ) >>12);
2517 gteMAC2 = (gteG0<<4) + ( (gteIR0*(signed short)limA2S(gteGFC-(gteG0<<4)) ) >>12);
2518 gteMAC3 = (gteB0<<4) + ( (gteIR0*(signed short)limA3S(gteBFC-(gteB0<<4)) ) >>12);*/

Callers

nothing calls this directly

Calls 6

FlimA1SFunction · 0.85
FlimA2SFunction · 0.85
FlimA3SFunction · 0.85
FlimB1Function · 0.85
FlimB2Function · 0.85
FlimB3Function · 0.85

Tested by

no test coverage detected