voodoo: Increase vretrace cycles to 2 so mace will boot again. Add missing rasterizers for later gtfore games. Remove outdated comments.

This commit is contained in:
Aaron Giles 2021-07-10 13:49:17 -07:00
parent c15624e0da
commit bc212e2ac1
3 changed files with 8 additions and 11 deletions

View File

@ -2035,7 +2035,8 @@ u32 voodoo_1_device::reg_fbiinit2_r(u32 chipmask, u32 regnum)
u32 voodoo_1_device::reg_vretrace_r(u32 chipmask, u32 regnum)
{
// sfrush needs this to be at least 1 extra cycle slower or else it won't boot
m_cpu->eat_cycles(1);
// mace needs this to be at least 2 extra cycles
m_cpu->eat_cycles(2);
// return 0 if vblank is active
return m_vblank ? 0 : screen().vpos();

View File

@ -2947,6 +2947,12 @@ static_rasterizer_info s_predef_raster_table[] =
RASTERIZER( 0x0B, 0x00002429, 0x00000000, 0x000000C1, 0x00010FF9, 0x00000A09, 0x00000A0F ) // 43784 3594532
RASTERIZER( 0x0B, 0x00002425, 0x00045110, 0x000000C1, 0x00010FF9, 0x00000ACD, 0x00000ACD ) // 14899 1391390
// gtfore02
RASTERIZER( 0x0B, 0x00002425, 0x00045119, 0x000000C1, 0x00010F79, 0x0C224A0D, 0x00000ACD ) // 776841 12879143
// gtfore06
RASTERIZER( 0x05, 0x00482405, 0x00045119, 0x000000C1, 0x00010FF9, 0x00000ACD, 0xFFFFFFFF ) // 51144 2582597
{ nullptr, rasterizer_params(0xffffffff) }
};

View File

@ -16,16 +16,6 @@
#include "video/poly.h"
#include "video/rgbutil.h"
//
// To do:
// - split rasterizer into setup (clip/flip) and inner part
// - templatize texture pipeline helpers
// - determine color scale factors up front as start/delta values and use those
// - incorporate type/memory? into constant flags
// - use type for: fog delta mask, bilinear mask
// - multiple rasterizer_textures to save stalls
// - leverage poly clipping?
//
namespace voodoo
{