mirror of https://github.com/PCSX2/pcsx2.git
Misc: Fix a bunch of warnings
This commit is contained in:
parent
fff8592b4e
commit
1be6e1f374
|
@ -1532,7 +1532,7 @@ void GSRendererHW::Draw()
|
||||||
{
|
{
|
||||||
// Force enable preloading if any of the existing data is needed.
|
// Force enable preloading if any of the existing data is needed.
|
||||||
// e.g. NFSMW only writes the alpha channel, and needs the RGB preloaded.
|
// e.g. NFSMW only writes the alpha channel, and needs the RGB preloaded.
|
||||||
if ((fm & fm_mask) != 0 && ((fm & fm_mask) != fm_mask) || // Some channels masked
|
if (((fm & fm_mask) != 0 && ((fm & fm_mask) != fm_mask)) || // Some channels masked
|
||||||
!IsOpaque()) // Blending enabled
|
!IsOpaque()) // Blending enabled
|
||||||
{
|
{
|
||||||
GL_INS("Forcing preload due to partial/blended CLUT draw");
|
GL_INS("Forcing preload due to partial/blended CLUT draw");
|
||||||
|
|
|
@ -292,7 +292,7 @@ GSVector4i GSTextureCache::TranslateAlignedRectByPage(Target* t, u32 sbp, u32 sp
|
||||||
if (!is_invalidation)
|
if (!is_invalidation)
|
||||||
return GSVector4i::zero();
|
return GSVector4i::zero();
|
||||||
|
|
||||||
const u32 offset = rect_pages.z - (dst_pgw);
|
// const u32 offset = rect_pages.z - (dst_pgw);
|
||||||
new_rect.x = 0;
|
new_rect.x = 0;
|
||||||
new_rect.z = dst_pgw * dst_page_size.x;
|
new_rect.z = dst_pgw * dst_page_size.x;
|
||||||
new_rect.w += dst_page_size.y;
|
new_rect.w += dst_page_size.y;
|
||||||
|
@ -457,7 +457,7 @@ void GSTextureCache::DirtyRectByPage(u32 sbp, u32 spsm, u32 sbw, Target* t, GSVe
|
||||||
// Kinda scary but covering the whole row and the next one should be okay? :/ (Check with MVP 07, sbp == 0x39a0)
|
// Kinda scary but covering the whole row and the next one should be okay? :/ (Check with MVP 07, sbp == 0x39a0)
|
||||||
if (rect_pages.z > static_cast<int>(dst_pgw))
|
if (rect_pages.z > static_cast<int>(dst_pgw))
|
||||||
{
|
{
|
||||||
u32 offset = rect_pages.z - (dst_pgw);
|
// u32 offset = rect_pages.z - (dst_pgw);
|
||||||
new_rect.x = 0;
|
new_rect.x = 0;
|
||||||
new_rect.z = dst_pgw * dst_page_size.x;
|
new_rect.z = dst_pgw * dst_page_size.x;
|
||||||
new_rect.w += dst_page_size.y;
|
new_rect.w += dst_page_size.y;
|
||||||
|
@ -699,7 +699,6 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
|
||||||
// else.)
|
// else.)
|
||||||
|
|
||||||
bool found_t = false;
|
bool found_t = false;
|
||||||
bool tex_in_rt = false;
|
|
||||||
bool tex_merge_rt = false;
|
bool tex_merge_rt = false;
|
||||||
for (auto t : m_dst[RenderTarget])
|
for (auto t : m_dst[RenderTarget])
|
||||||
{
|
{
|
||||||
|
@ -853,7 +852,6 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
|
||||||
dst = t;
|
dst = t;
|
||||||
|
|
||||||
found_t = true;
|
found_t = true;
|
||||||
tex_in_rt = false;
|
|
||||||
tex_merge_rt = false;
|
tex_merge_rt = false;
|
||||||
x_offset = 0;
|
x_offset = 0;
|
||||||
y_offset = 0;
|
y_offset = 0;
|
||||||
|
@ -868,7 +866,6 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
|
||||||
half_right = true;
|
half_right = true;
|
||||||
dst = t;
|
dst = t;
|
||||||
found_t = true;
|
found_t = true;
|
||||||
tex_in_rt = false;
|
|
||||||
tex_merge_rt = false;
|
tex_merge_rt = false;
|
||||||
x_offset = 0;
|
x_offset = 0;
|
||||||
y_offset = 0;
|
y_offset = 0;
|
||||||
|
@ -945,7 +942,6 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
|
||||||
x_offset = rect.x;
|
x_offset = rect.x;
|
||||||
y_offset = rect.y;
|
y_offset = rect.y;
|
||||||
dst = t;
|
dst = t;
|
||||||
tex_in_rt = true;
|
|
||||||
tex_merge_rt = false;
|
tex_merge_rt = false;
|
||||||
found_t = true;
|
found_t = true;
|
||||||
continue;
|
continue;
|
||||||
|
@ -965,7 +961,6 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
|
||||||
// Offset from Target to Source in Target coords.
|
// Offset from Target to Source in Target coords.
|
||||||
x_offset = so.b2a_offset.x;
|
x_offset = so.b2a_offset.x;
|
||||||
y_offset = so.b2a_offset.y;
|
y_offset = so.b2a_offset.y;
|
||||||
tex_in_rt = true;
|
|
||||||
tex_merge_rt = false;
|
tex_merge_rt = false;
|
||||||
found_t = true;
|
found_t = true;
|
||||||
// Keep looking, just in case there is an exact match (Situation: Target frame drawn inside target frame, current makes a separate texture)
|
// Keep looking, just in case there is an exact match (Situation: Target frame drawn inside target frame, current makes a separate texture)
|
||||||
|
@ -978,7 +973,6 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
|
||||||
dst = t;
|
dst = t;
|
||||||
x_offset = 0;
|
x_offset = 0;
|
||||||
y_offset = 0;
|
y_offset = 0;
|
||||||
tex_in_rt = false;
|
|
||||||
tex_merge_rt = true;
|
tex_merge_rt = true;
|
||||||
|
|
||||||
// Prefer a target inside over a target outside.
|
// Prefer a target inside over a target outside.
|
||||||
|
|
|
@ -1135,11 +1135,6 @@ void GSDeviceVK::ClearSamplerCache()
|
||||||
m_tfx_sampler = m_point_sampler;
|
m_tfx_sampler = m_point_sampler;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void AddMacro(std::stringstream& ss, const char* name, const char* value)
|
|
||||||
{
|
|
||||||
ss << "#define " << name << " " << value << "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
static void AddMacro(std::stringstream& ss, const char* name, int value)
|
static void AddMacro(std::stringstream& ss, const char* name, int value)
|
||||||
{
|
{
|
||||||
ss << "#define " << name << " " << value << "\n";
|
ss << "#define " << name << " " << value << "\n";
|
||||||
|
|
Loading…
Reference in New Issue