Ported the mainline PCem Voodoo commits, incl. SLI emulation.

This commit is contained in:
OBattler
2017-08-20 23:15:07 +02:00
parent 2e9ab14725
commit 6c67a4d9d1
3 changed files with 641 additions and 136 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1671,15 +1671,8 @@ static inline void voodoo_generate(uint8_t *code_block, voodoo_t *voodoo, voodoo
if (voodoo->trexInit1[0] & (1 << 18))
{
addbyte(0xb8); /*MOV EAX, 0x000001*/
if (voodoo->dual_tmus)
{
addlong(0x0000c1);
}
else
{
addlong(0x000001);
}
addbyte(0xb8); /*MOV EAX, tmuConfig*/
addlong(voodoo->tmuConfig);
addbyte(0x66); /*MOVD XMM0, EAX*/
addbyte(0x0f);
addbyte(0x6e);

View File

@@ -1650,15 +1650,8 @@ static inline void voodoo_generate(uint8_t *code_block, voodoo_t *voodoo, voodoo
if (voodoo->trexInit1[0] & (1 << 18))
{
addbyte(0xb8); /*MOV EAX, 0x000001*/
if (voodoo->dual_tmus)
{
addlong(0x0000c1);
}
else
{
addlong(0x000001);
}
addbyte(0xb8); /*MOV EAX, tmuConfig*/
addlong(voodoo->tmuConfig);
addbyte(0x66); /*MOVD XMM0, EAX*/
addbyte(0x0f);
addbyte(0x6e);