- ops, sorry, I forgot commit some stuff (bug #2868470);
This commit is contained in:
parent
953ced2c6c
commit
7e70ed64bb
|
@ -1792,6 +1792,7 @@ void TGXSTAT::reset()
|
||||||
gxfifo_irq = se = tr = tb = 0;
|
gxfifo_irq = se = tr = tb = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern CACHE_ALIGN MatrixStack mtxStack[4];
|
||||||
u32 TGXSTAT::read32()
|
u32 TGXSTAT::read32()
|
||||||
{
|
{
|
||||||
u32 ret = 0;
|
u32 ret = 0;
|
||||||
|
@ -1829,8 +1830,13 @@ u32 TGXSTAT::read32()
|
||||||
void TGXSTAT::write32(const u32 val)
|
void TGXSTAT::write32(const u32 val)
|
||||||
{
|
{
|
||||||
gxfifo_irq = (val>>30)&3;
|
gxfifo_irq = (val>>30)&3;
|
||||||
if(BIT15(val)) se = 0; //clear stack error flag
|
if(BIT15(val))
|
||||||
//if(BIT15(val)) gfx3d_ClearStack(); //??
|
{
|
||||||
|
// Writing "1" to Bit15 does reset the Error Flag (Bit15),
|
||||||
|
// and additionally resets the Projection Stack Pointer (Bit13)
|
||||||
|
mtxStack[0].position = 0;
|
||||||
|
se = 0; //clear stack error flag
|
||||||
|
}
|
||||||
//printf("gxstat write: %08X while gxfifo.size=%d\n",val,gxFIFO.size);
|
//printf("gxstat write: %08X while gxfifo.size=%d\n",val,gxFIFO.size);
|
||||||
|
|
||||||
//if (val & (1<<29)) // clear? (only in homebrew?)
|
//if (val & (1<<29)) // clear? (only in homebrew?)
|
||||||
|
|
Loading…
Reference in New Issue