voodoo: Address minor coverity complaints

This commit is contained in:
Aaron Giles 2021-07-31 12:06:14 -07:00
parent 7419700de0
commit 79c69f958d
3 changed files with 11 additions and 4 deletions

View File

@ -316,7 +316,9 @@ tmu_state::tmu_state() :
m_ram(nullptr),
m_mask(0),
m_basemask(0xfffff),
m_baseshift(3)
m_baseshift(3),
m_regdirty(true),
m_texel_lookup(nullptr)
{
}
@ -578,6 +580,7 @@ void debug_stats::add_emulation_stats(thread_stats_block const &block)
void debug_stats::reset()
{
m_swaps = 0;
m_stalls = 0;
m_triangles = 0;
m_pixels_in = 0;

View File

@ -1040,8 +1040,6 @@ s32 voodoo_banshee_device::internal_2d_w(offs_t offset, u32 data)
default:
if (offset >= 0x20 && offset < 0x40)
execute_blit(data);
else if (offset >= 0x40 && offset < 0x80)
{} // TODO: colorPattern
break;
}

View File

@ -1001,7 +1001,13 @@ public:
static constexpr u32 reg_nccTable = 0x324/4; // W F
// constructor
voodoo_regs()
voodoo_regs() :
m_starts(0), m_startt(0),
m_startw(0),
m_dsdx(0), m_dtdx(0),
m_dwdx(0),
m_dsdy(0), m_dtdy(0),
m_dwdy(0)
{
for (int index = 0; index < std::size(m_regs); index++)
m_regs[index].u = 0;