Misc: Warning fixes

This commit is contained in:
Stenzek 2023-02-10 00:33:57 +10:00 committed by refractionpcsx2
parent b30b4375e7
commit 5b5edc506d
3 changed files with 2 additions and 3 deletions

View File

@ -399,7 +399,6 @@ namespace Vulkan
VkPhysicalDeviceProperties m_device_properties = {}; VkPhysicalDeviceProperties m_device_properties = {};
VkPhysicalDeviceMemoryProperties m_device_memory_properties = {}; VkPhysicalDeviceMemoryProperties m_device_memory_properties = {};
VkPhysicalDeviceDriverPropertiesKHR m_device_driver_properties = {}; VkPhysicalDeviceDriverPropertiesKHR m_device_driver_properties = {};
VkPhysicalDeviceLineRasterizationFeaturesEXT m_line_rasterization_features = {};
OptionalExtensions m_optional_extensions = {}; OptionalExtensions m_optional_extensions = {};
}; };

View File

@ -3142,7 +3142,7 @@ void GSRendererHW::EmulateTextureSampler(const GSTextureCache::Source* tex)
const GSLocalMemory::psm_t& psm = GSLocalMemory::m_psm[tex->m_TEX0.PSM]; const GSLocalMemory::psm_t& psm = GSLocalMemory::m_psm[tex->m_TEX0.PSM];
const GSLocalMemory::psm_t& cpsm = psm.pal > 0 ? GSLocalMemory::m_psm[m_context->TEX0.CPSM] : psm; const GSLocalMemory::psm_t& cpsm = psm.pal > 0 ? GSLocalMemory::m_psm[m_context->TEX0.CPSM] : psm;
static constexpr const char* clamp_modes[] = { "REPEAT", "CLAMP", "REGION_CLAMP", "REGION_REPEAT" }; [[maybe_unused]] static constexpr const char* clamp_modes[] = { "REPEAT", "CLAMP", "REGION_CLAMP", "REGION_REPEAT" };
const bool redundant_wms = IsRedundantClamp(m_context->CLAMP.WMS, m_context->CLAMP.MINU, m_context->CLAMP.MAXU, tex->m_TEX0.TW); const bool redundant_wms = IsRedundantClamp(m_context->CLAMP.WMS, m_context->CLAMP.MINU, m_context->CLAMP.MAXU, tex->m_TEX0.TW);
const bool redundant_wmt = IsRedundantClamp(m_context->CLAMP.WMT, m_context->CLAMP.MINV, m_context->CLAMP.MAXV, tex->m_TEX0.TH); const bool redundant_wmt = IsRedundantClamp(m_context->CLAMP.WMT, m_context->CLAMP.MINV, m_context->CLAMP.MAXV, tex->m_TEX0.TH);
const u8 wms = EffectiveClamp(m_context->CLAMP.WMS, tex->m_region.HasX()); const u8 wms = EffectiveClamp(m_context->CLAMP.WMS, tex->m_region.HasX());

View File

@ -519,7 +519,7 @@ void DSRLV(){ if (!_Rd_) return; cpuRegs.GPR.r[_Rd_].UD[0] = (u64)(cpuRegs.GPR.r
// exceptions, since the lower bits of the address are used to determine the portions // exceptions, since the lower bits of the address are used to determine the portions
// of the address/register operations. // of the address/register operations.
[[ noreturn ]] __noinline static void RaiseAddressError(u32 addr, bool store) __noinline static void RaiseAddressError(u32 addr, bool store)
{ {
const std::string message(fmt::format("Address Error, addr=0x{:x} [{}]", addr, store ? "store" : "load")); const std::string message(fmt::format("Address Error, addr=0x{:x} [{}]", addr, store ? "store" : "load"));