Clamp SVGA display on/off timings to a minimum of 1 usec. Fixes hang on Windows XP boot with ViRGE/DX.
This commit is contained in:
parent
4846616924
commit
2783471daa
1 changed files with 4 additions and 0 deletions
|
|
@ -435,6 +435,10 @@ void svga_recalctimings(svga_t *svga)
|
|||
|
||||
svga->dispontime = (uint64_t)_dispontime;
|
||||
svga->dispofftime = (uint64_t)_dispofftime;
|
||||
if (svga->dispontime < TIMER_USEC)
|
||||
svga->dispontime = TIMER_USEC;
|
||||
if (svga->dispofftime < TIMER_USEC)
|
||||
svga->dispofftime = TIMER_USEC;
|
||||
/* printf("SVGA horiz total %i display end %i vidclock %f\n",svga->crtc[0],svga->crtc[1],svga->clock);
|
||||
printf("SVGA vert total %i display end %i max row %i vsync %i\n",svga->vtotal,svga->dispend,(svga->crtc[9]&31)+1,svga->vsyncstart);
|
||||
printf("total %f on %i cycles off %i cycles frame %i sec %i %02X\n",disptime*crtcconst,svga->dispontime,svga->dispofftime,(svga->dispontime+svga->dispofftime)*svga->vtotal,(svga->dispontime+svga->dispofftime)*svga->vtotal*70,svga->seqregs[1]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue