mirror of
https://github.com/holub/mame
synced 2025-05-31 01:51:46 +03:00
put bilinear enable as a debug feature for now, it's pretty, but a little slow to be developing with :-)
This commit is contained in:
parent
ccc344ef61
commit
5b959d28aa
@ -976,6 +976,13 @@ ADDRESS_MAP_END
|
|||||||
* Input ports
|
* Input ports
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define NAOMI_MAME_DEBUG_DIP \
|
||||||
|
PORT_START("MAMEDEBUG") \
|
||||||
|
PORT_DIPNAME( 0x01, 0x00, "Bilinear Filtering" ) \
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \
|
||||||
|
PORT_DIPSETTING( 0x01, DEF_STR( On ) ) \
|
||||||
|
|
||||||
|
|
||||||
/* for now we hardwire a joystick + 6 buttons for every game.*/
|
/* for now we hardwire a joystick + 6 buttons for every game.*/
|
||||||
static INPUT_PORTS_START( naomi )
|
static INPUT_PORTS_START( naomi )
|
||||||
PORT_START("IN0")
|
PORT_START("IN0")
|
||||||
@ -1011,6 +1018,8 @@ static INPUT_PORTS_START( naomi )
|
|||||||
PORT_START("COINS")
|
PORT_START("COINS")
|
||||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED(dc_coin_slots_callback, &dc_coin_counts[0])
|
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED(dc_coin_slots_callback, &dc_coin_counts[0])
|
||||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CHANGED(dc_coin_slots_callback, &dc_coin_counts[1])
|
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CHANGED(dc_coin_slots_callback, &dc_coin_counts[1])
|
||||||
|
|
||||||
|
NAOMI_MAME_DEBUG_DIP
|
||||||
INPUT_PORTS_END
|
INPUT_PORTS_END
|
||||||
|
|
||||||
/* JVS mahjong panel */
|
/* JVS mahjong panel */
|
||||||
@ -1122,6 +1131,8 @@ static INPUT_PORTS_START( naomi_mp )
|
|||||||
PORT_START("COINS")
|
PORT_START("COINS")
|
||||||
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED(dc_coin_slots_callback, &dc_coin_counts[0])
|
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED(dc_coin_slots_callback, &dc_coin_counts[0])
|
||||||
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CHANGED(dc_coin_slots_callback, &dc_coin_counts[1])
|
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CHANGED(dc_coin_slots_callback, &dc_coin_counts[1])
|
||||||
|
|
||||||
|
NAOMI_MAME_DEBUG_DIP
|
||||||
INPUT_PORTS_END
|
INPUT_PORTS_END
|
||||||
|
|
||||||
static MACHINE_RESET( naomi )
|
static MACHINE_RESET( naomi )
|
||||||
|
@ -34,6 +34,7 @@ static UINT32 dilated0[15][1024];
|
|||||||
static UINT32 dilated1[15][1024];
|
static UINT32 dilated1[15][1024];
|
||||||
static int dilatechose[64];
|
static int dilatechose[64];
|
||||||
static float wbuffer[480][640];
|
static float wbuffer[480][640];
|
||||||
|
static UINT32 debug_dip_status;
|
||||||
|
|
||||||
UINT64 *dc_texture_ram;
|
UINT64 *dc_texture_ram;
|
||||||
static UINT32 tafifo_buff[32];
|
static UINT32 tafifo_buff[32];
|
||||||
@ -1600,12 +1601,17 @@ void render_hline(bitmap_t *bitmap, texinfo *ti, int y, float xl, float xr, floa
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
c = ti->r(ti, u, v);
|
c = ti->r(ti, u, v);
|
||||||
if(ti->filter_mode == TEX_FILTER_BILINEAR)
|
|
||||||
{
|
// debug dip to turn on/off bilinear filtering, it's slooooow
|
||||||
UINT32 c1 = ti->r(ti, u+1.0, v);
|
if (debug_dip_status&0x1)
|
||||||
UINT32 c2 = ti->r(ti, u+1.0, v+1.0);
|
{
|
||||||
UINT32 c3 = ti->r(ti, u, v+1.0);
|
if(ti->filter_mode == TEX_FILTER_BILINEAR)
|
||||||
c = bilinear_filter(c, c1, c2, c3, u, v);
|
{
|
||||||
|
UINT32 c1 = ti->r(ti, u+1.0, v);
|
||||||
|
UINT32 c2 = ti->r(ti, u+1.0, v+1.0);
|
||||||
|
UINT32 c3 = ti->r(ti, u, v+1.0);
|
||||||
|
c = bilinear_filter(c, c1, c2, c3, u, v);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(c & 0xff000000) {
|
if(c & 0xff000000) {
|
||||||
@ -2107,6 +2113,9 @@ VIDEO_UPDATE(dc)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update this here so we only do string lookup once per frame
|
||||||
|
debug_dip_status = input_port_read(screen->machine, "MAMEDEBUG");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user