summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2021-07-31 12:06:14 -0700
committer Aaron Giles <aaron@aarongiles.com>2021-07-31 12:06:14 -0700
commit79c69f958d3c0d31fd815fe0cf912094d97debb2 (patch)
tree81e1f43eca83cdb95aafc1b0a64c73a3dca96555
parent7419700de0d0937d32e9f3bfbba7a08f650af893 (diff)
voodoo: Address minor coverity complaints
-rw-r--r--src/devices/video/voodoo.cpp5
-rw-r--r--src/devices/video/voodoo_banshee.cpp2
-rw-r--r--src/devices/video/voodoo_regs.h8
3 files changed, 11 insertions, 4 deletions
diff --git a/src/devices/video/voodoo.cpp b/src/devices/video/voodoo.cpp
index 472f5c5fd47..93ccabb1d90 100644
--- a/src/devices/video/voodoo.cpp
+++ b/src/devices/video/voodoo.cpp
@@ -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;
diff --git a/src/devices/video/voodoo_banshee.cpp b/src/devices/video/voodoo_banshee.cpp
index 40706694004..a23311802c8 100644
--- a/src/devices/video/voodoo_banshee.cpp
+++ b/src/devices/video/voodoo_banshee.cpp
@@ -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;
}
diff --git a/src/devices/video/voodoo_regs.h b/src/devices/video/voodoo_regs.h
index ba3582acb58..539991553eb 100644
--- a/src/devices/video/voodoo_regs.h
+++ b/src/devices/video/voodoo_regs.h
@@ -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;