Fix annoying name clashes (Status is in X11 headers..)

This commit is contained in:
Henrik Rydgård 2017-12-13 23:11:40 +01:00
parent e488227398
commit dc6a4ea753
13 changed files with 46 additions and 46 deletions

View File

@ -504,18 +504,18 @@ namespace Reporting
g_Config.sReportHost = "default"; g_Config.sReportHost = "default";
} }
Status GetStatus() ReportStatus GetStatus()
{ {
if (!serverWorking) if (!serverWorking)
return Status::FAILING; return ReportStatus::FAILING;
for (int pos = 0; pos < PAYLOAD_BUFFER_SIZE; ++pos) for (int pos = 0; pos < PAYLOAD_BUFFER_SIZE; ++pos)
{ {
if (payloadBuffer[pos].type != RequestType::NONE) if (payloadBuffer[pos].type != RequestType::NONE)
return Status::BUSY; return ReportStatus::BUSY;
} }
return Status::WORKING; return ReportStatus::WORKING;
} }
int NextFreePos() int NextFreePos()

View File

@ -77,18 +77,18 @@ namespace Reporting
// Returns true if that identifier has not been logged yet. // Returns true if that identifier has not been logged yet.
bool ShouldLogOnce(const char *identifier); bool ShouldLogOnce(const char *identifier);
enum class Status { enum class ReportStatus {
WORKING, WORKING,
BUSY, BUSY,
FAILING, FAILING,
}; };
// Whether server requests appear to be working. // Whether server requests appear to be working.
Status GetStatus(); ReportStatus GetStatus();
// Return the currently active host (or blank if not active.) // Return the currently active host (or blank if not active.)
std::string ServerHost(); std::string ServerHost();
// Return the current game id. // Return the current game id.
std::string CurrentGameID(); std::string CurrentGameID();
} }

View File

@ -96,7 +96,7 @@ struct TexCacheEntry {
// After marking STATUS_UNRELIABLE, if it stays the same this many frames we'll trust it again. // After marking STATUS_UNRELIABLE, if it stays the same this many frames we'll trust it again.
const static int FRAMES_REGAIN_TRUST = 1000; const static int FRAMES_REGAIN_TRUST = 1000;
enum Status { enum TexStatus {
STATUS_HASHING = 0x00, STATUS_HASHING = 0x00,
STATUS_RELIABLE = 0x01, // Don't bother rehashing. STATUS_RELIABLE = 0x01, // Don't bother rehashing.
STATUS_UNRELIABLE = 0x02, // Always recheck hash. STATUS_UNRELIABLE = 0x02, // Always recheck hash.
@ -156,19 +156,19 @@ struct TexCacheEntry {
bool sClamp; bool sClamp;
bool tClamp; bool tClamp;
Status GetHashStatus() { TexStatus GetHashStatus() {
return Status(status & STATUS_MASK); return TexStatus(status & STATUS_MASK);
} }
void SetHashStatus(Status newStatus) { void SetHashStatus(TexStatus newStatus) {
status = (status & ~STATUS_MASK) | newStatus; status = (status & ~STATUS_MASK) | newStatus;
} }
Status GetAlphaStatus() { TexStatus GetAlphaStatus() {
return Status(status & STATUS_ALPHA_MASK); return TexStatus(status & STATUS_ALPHA_MASK);
} }
void SetAlphaStatus(Status newStatus) { void SetAlphaStatus(TexStatus newStatus) {
status = (status & ~STATUS_ALPHA_MASK) | newStatus; status = (status & ~STATUS_ALPHA_MASK) | newStatus;
} }
void SetAlphaStatus(Status newStatus, int level) { void SetAlphaStatus(TexStatus newStatus, int level) {
// For non-level zero, only set more restrictive. // For non-level zero, only set more restrictive.
if (newStatus == STATUS_ALPHA_UNKNOWN || level == 0) { if (newStatus == STATUS_ALPHA_UNKNOWN || level == 0) {
SetAlphaStatus(newStatus); SetAlphaStatus(newStatus);

View File

@ -407,7 +407,7 @@ void TextureCacheD3D11::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFra
const u32 bytesPerColor = clutFormat == GE_CMODE_32BIT_ABGR8888 ? sizeof(u32) : sizeof(u16); const u32 bytesPerColor = clutFormat == GE_CMODE_32BIT_ABGR8888 ? sizeof(u32) : sizeof(u16);
const u32 clutTotalColors = clutMaxBytes_ / bytesPerColor; const u32 clutTotalColors = clutMaxBytes_ / bytesPerColor;
TexCacheEntry::Status alphaStatus = CheckAlpha(clutBuf_, GetClutDestFormatD3D11(clutFormat), clutTotalColors, clutTotalColors, 1); TexCacheEntry::TexStatus alphaStatus = CheckAlpha(clutBuf_, GetClutDestFormatD3D11(clutFormat), clutTotalColors, clutTotalColors, 1);
gstate_c.SetTextureFullAlpha(alphaStatus == TexCacheEntry::STATUS_ALPHA_FULL); gstate_c.SetTextureFullAlpha(alphaStatus == TexCacheEntry::STATUS_ALPHA_FULL);
} else { } else {
entry->status &= ~TexCacheEntry::STATUS_DEPALETTIZE; entry->status &= ~TexCacheEntry::STATUS_DEPALETTIZE;
@ -557,7 +557,7 @@ void TextureCacheD3D11::BuildTexture(TexCacheEntry *const entry, bool replaceIma
entry->status &= ~TexCacheEntry::STATUS_BAD_MIPS; entry->status &= ~TexCacheEntry::STATUS_BAD_MIPS;
} }
if (replaced.Valid()) { if (replaced.Valid()) {
entry->SetAlphaStatus(TexCacheEntry::Status(replaced.AlphaStatus())); entry->SetAlphaStatus(TexCacheEntry::TexStatus(replaced.AlphaStatus()));
} }
} }
@ -602,7 +602,7 @@ DXGI_FORMAT TextureCacheD3D11::GetDestFormat(GETextureFormat format, GEPaletteFo
} }
} }
TexCacheEntry::Status TextureCacheD3D11::CheckAlpha(const u32 *pixelData, u32 dstFmt, int stride, int w, int h) { TexCacheEntry::TexStatus TextureCacheD3D11::CheckAlpha(const u32 *pixelData, u32 dstFmt, int stride, int w, int h) {
CheckAlphaResult res; CheckAlphaResult res;
switch (dstFmt) { switch (dstFmt) {
case DXGI_FORMAT_B4G4R4A4_UNORM: case DXGI_FORMAT_B4G4R4A4_UNORM:
@ -620,7 +620,7 @@ TexCacheEntry::Status TextureCacheD3D11::CheckAlpha(const u32 *pixelData, u32 ds
break; break;
} }
return (TexCacheEntry::Status)res; return (TexCacheEntry::TexStatus)res;
} }
ReplacedTextureFormat FromD3D11Format(u32 fmt) { ReplacedTextureFormat FromD3D11Format(u32 fmt) {
@ -721,7 +721,7 @@ void TextureCacheD3D11::LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &
// We check before scaling since scaling shouldn't invent alpha from a full alpha texture. // We check before scaling since scaling shouldn't invent alpha from a full alpha texture.
if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) { if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) {
TexCacheEntry::Status alphaStatus = CheckAlpha(pixelData, dstFmt, decPitch / bpp, w, h); TexCacheEntry::TexStatus alphaStatus = CheckAlpha(pixelData, dstFmt, decPitch / bpp, w, h);
entry.SetAlphaStatus(alphaStatus, level); entry.SetAlphaStatus(alphaStatus, level);
} else { } else {
entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN); entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN);

View File

@ -74,7 +74,7 @@ protected:
private: private:
void LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &replaced, int level, int maxLevel, bool replaceImages, int scaleFactor, DXGI_FORMAT dstFmt); void LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &replaced, int level, int maxLevel, bool replaceImages, int scaleFactor, DXGI_FORMAT dstFmt);
DXGI_FORMAT GetDestFormat(GETextureFormat format, GEPaletteFormat clutFormat) const; DXGI_FORMAT GetDestFormat(GETextureFormat format, GEPaletteFormat clutFormat) const;
TexCacheEntry::Status CheckAlpha(const u32 *pixelData, u32 dstFmt, int stride, int w, int h); TexCacheEntry::TexStatus CheckAlpha(const u32 *pixelData, u32 dstFmt, int stride, int w, int h);
void UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) override; void UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) override;
void ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) override; void ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) override;

View File

@ -454,7 +454,7 @@ void TextureCacheDX9::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFrame
const u32 bytesPerColor = clutFormat == GE_CMODE_32BIT_ABGR8888 ? sizeof(u32) : sizeof(u16); const u32 bytesPerColor = clutFormat == GE_CMODE_32BIT_ABGR8888 ? sizeof(u32) : sizeof(u16);
const u32 clutTotalColors = clutMaxBytes_ / bytesPerColor; const u32 clutTotalColors = clutMaxBytes_ / bytesPerColor;
TexCacheEntry::Status alphaStatus = CheckAlpha(clutBuf_, getClutDestFormat(clutFormat), clutTotalColors, clutTotalColors, 1); TexCacheEntry::TexStatus alphaStatus = CheckAlpha(clutBuf_, getClutDestFormat(clutFormat), clutTotalColors, clutTotalColors, 1);
gstate_c.SetTextureFullAlpha(alphaStatus == TexCacheEntry::STATUS_ALPHA_FULL); gstate_c.SetTextureFullAlpha(alphaStatus == TexCacheEntry::STATUS_ALPHA_FULL);
} else { } else {
entry->status &= ~TexCacheEntry::STATUS_DEPALETTIZE; entry->status &= ~TexCacheEntry::STATUS_DEPALETTIZE;
@ -599,7 +599,7 @@ void TextureCacheDX9::BuildTexture(TexCacheEntry *const entry, bool replaceImage
entry->status &= ~TexCacheEntry::STATUS_BAD_MIPS; entry->status &= ~TexCacheEntry::STATUS_BAD_MIPS;
} }
if (replaced.Valid()) { if (replaced.Valid()) {
entry->SetAlphaStatus(TexCacheEntry::Status(replaced.AlphaStatus())); entry->SetAlphaStatus(TexCacheEntry::TexStatus(replaced.AlphaStatus()));
} }
} }
@ -625,7 +625,7 @@ D3DFORMAT TextureCacheDX9::GetDestFormat(GETextureFormat format, GEPaletteFormat
} }
} }
TexCacheEntry::Status TextureCacheDX9::CheckAlpha(const u32 *pixelData, u32 dstFmt, int stride, int w, int h) { TexCacheEntry::TexStatus TextureCacheDX9::CheckAlpha(const u32 *pixelData, u32 dstFmt, int stride, int w, int h) {
CheckAlphaResult res; CheckAlphaResult res;
switch (dstFmt) { switch (dstFmt) {
case D3DFMT_A4R4G4B4: case D3DFMT_A4R4G4B4:
@ -643,7 +643,7 @@ TexCacheEntry::Status TextureCacheDX9::CheckAlpha(const u32 *pixelData, u32 dstF
break; break;
} }
return (TexCacheEntry::Status)res; return (TexCacheEntry::TexStatus)res;
} }
ReplacedTextureFormat FromD3D9Format(u32 fmt) { ReplacedTextureFormat FromD3D9Format(u32 fmt) {
@ -736,7 +736,7 @@ void TextureCacheDX9::LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &re
// We check before scaling since scaling shouldn't invent alpha from a full alpha texture. // We check before scaling since scaling shouldn't invent alpha from a full alpha texture.
if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) { if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) {
TexCacheEntry::Status alphaStatus = CheckAlpha(pixelData, dstFmt, decPitch / bpp, w, h); TexCacheEntry::TexStatus alphaStatus = CheckAlpha(pixelData, dstFmt, decPitch / bpp, w, h);
entry.SetAlphaStatus(alphaStatus, level); entry.SetAlphaStatus(alphaStatus, level);
} else { } else {
entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN); entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN);

View File

@ -68,7 +68,7 @@ private:
void UpdateSamplingParams(TexCacheEntry &entry, bool force); void UpdateSamplingParams(TexCacheEntry &entry, bool force);
void LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &replaced, int level, int maxLevel, bool replaceImages, int scaleFactor, u32 dstFmt); void LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &replaced, int level, int maxLevel, bool replaceImages, int scaleFactor, u32 dstFmt);
D3DFORMAT GetDestFormat(GETextureFormat format, GEPaletteFormat clutFormat) const; D3DFORMAT GetDestFormat(GETextureFormat format, GEPaletteFormat clutFormat) const;
TexCacheEntry::Status CheckAlpha(const u32 *pixelData, u32 dstFmt, int stride, int w, int h); TexCacheEntry::TexStatus CheckAlpha(const u32 *pixelData, u32 dstFmt, int stride, int w, int h);
void UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) override; void UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) override;
void ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) override; void ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) override;

View File

@ -515,7 +515,7 @@ void TextureCacheGLES::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFram
const u32 bytesPerColor = clutFormat == GE_CMODE_32BIT_ABGR8888 ? sizeof(u32) : sizeof(u16); const u32 bytesPerColor = clutFormat == GE_CMODE_32BIT_ABGR8888 ? sizeof(u32) : sizeof(u16);
const u32 clutTotalColors = clutMaxBytes_ / bytesPerColor; const u32 clutTotalColors = clutMaxBytes_ / bytesPerColor;
TexCacheEntry::Status alphaStatus = CheckAlpha(clutBuf_, getClutDestFormat(clutFormat), clutTotalColors, clutTotalColors, 1); TexCacheEntry::TexStatus alphaStatus = CheckAlpha(clutBuf_, getClutDestFormat(clutFormat), clutTotalColors, clutTotalColors, 1);
gstate_c.SetTextureFullAlpha(alphaStatus == TexCacheEntry::STATUS_ALPHA_FULL); gstate_c.SetTextureFullAlpha(alphaStatus == TexCacheEntry::STATUS_ALPHA_FULL);
} else { } else {
entry->status &= ~TexCacheEntry::STATUS_DEPALETTIZE; entry->status &= ~TexCacheEntry::STATUS_DEPALETTIZE;
@ -737,7 +737,7 @@ void TextureCacheGLES::BuildTexture(TexCacheEntry *const entry, bool replaceImag
entry->status &= ~TexCacheEntry::STATUS_BAD_MIPS; entry->status &= ~TexCacheEntry::STATUS_BAD_MIPS;
} }
if (replaced.Valid()) { if (replaced.Valid()) {
entry->SetAlphaStatus(TexCacheEntry::Status(replaced.AlphaStatus())); entry->SetAlphaStatus(TexCacheEntry::TexStatus(replaced.AlphaStatus()));
} }
if (gstate_c.Supports(GPU_SUPPORTS_ANISOTROPY)) { if (gstate_c.Supports(GPU_SUPPORTS_ANISOTROPY)) {
@ -813,7 +813,7 @@ void *TextureCacheGLES::DecodeTextureLevelOld(GETextureFormat format, GEPaletteF
return tmpTexBufRearrange_.data(); return tmpTexBufRearrange_.data();
} }
TexCacheEntry::Status TextureCacheGLES::CheckAlpha(const u32 *pixelData, GLenum dstFmt, int stride, int w, int h) { TexCacheEntry::TexStatus TextureCacheGLES::CheckAlpha(const u32 *pixelData, GLenum dstFmt, int stride, int w, int h) {
CheckAlphaResult res; CheckAlphaResult res;
switch (dstFmt) { switch (dstFmt) {
case GL_UNSIGNED_SHORT_4_4_4_4: case GL_UNSIGNED_SHORT_4_4_4_4:
@ -831,7 +831,7 @@ TexCacheEntry::Status TextureCacheGLES::CheckAlpha(const u32 *pixelData, GLenum
break; break;
} }
return (TexCacheEntry::Status)res; return (TexCacheEntry::TexStatus)res;
} }
void TextureCacheGLES::LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &replaced, int level, bool replaceImages, int scaleFactor, GLenum dstFmt) { void TextureCacheGLES::LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &replaced, int level, bool replaceImages, int scaleFactor, GLenum dstFmt) {
@ -880,7 +880,7 @@ void TextureCacheGLES::LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &r
// We check before scaling since scaling shouldn't invent alpha from a full alpha texture. // We check before scaling since scaling shouldn't invent alpha from a full alpha texture.
if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) { if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) {
TexCacheEntry::Status alphaStatus = CheckAlpha(pixelData, dstFmt, useUnpack ? bufw : w, w, h); TexCacheEntry::TexStatus alphaStatus = CheckAlpha(pixelData, dstFmt, useUnpack ? bufw : w, w, h);
entry.SetAlphaStatus(alphaStatus, level); entry.SetAlphaStatus(alphaStatus, level);
} else { } else {
entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN); entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN);

View File

@ -81,7 +81,7 @@ private:
void LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &replaced, int level, bool replaceImages, int scaleFactor, GLenum dstFmt); void LoadTextureLevel(TexCacheEntry &entry, ReplacedTexture &replaced, int level, bool replaceImages, int scaleFactor, GLenum dstFmt);
GLenum GetDestFormat(GETextureFormat format, GEPaletteFormat clutFormat) const; GLenum GetDestFormat(GETextureFormat format, GEPaletteFormat clutFormat) const;
void *DecodeTextureLevelOld(GETextureFormat format, GEPaletteFormat clutformat, int level, GLenum dstFmt, int scaleFactor, int *bufw = 0); void *DecodeTextureLevelOld(GETextureFormat format, GEPaletteFormat clutformat, int level, GLenum dstFmt, int scaleFactor, int *bufw = 0);
TexCacheEntry::Status CheckAlpha(const u32 *pixelData, GLenum dstFmt, int stride, int w, int h); TexCacheEntry::TexStatus CheckAlpha(const u32 *pixelData, GLenum dstFmt, int stride, int w, int h);
void UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) override; void UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) override;
void ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) override; void ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) override;

View File

@ -83,7 +83,7 @@ public:
} }
// No destructor needed - we always fully wipe. // No destructor needed - we always fully wipe.
enum Status : uint8_t { enum VAIStatus : uint8_t {
VAI_NEW, VAI_NEW,
VAI_HASHING, VAI_HASHING,
VAI_RELIABLE, // cache, don't hash VAI_RELIABLE, // cache, don't hash
@ -104,7 +104,7 @@ public:
u16 numVerts = 0; u16 numVerts = 0;
u16 maxIndex = 0; u16 maxIndex = 0;
s8 prim = GE_PRIM_INVALID; s8 prim = GE_PRIM_INVALID;
Status status = VAI_NEW; VAIStatus status = VAI_NEW;
// ID information // ID information
int numDraws = 0; int numDraws = 0;

View File

@ -414,7 +414,7 @@ void TextureCacheVulkan::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFr
const u32 bytesPerColor = clutFormat == GE_CMODE_32BIT_ABGR8888 ? sizeof(u32) : sizeof(u16); const u32 bytesPerColor = clutFormat == GE_CMODE_32BIT_ABGR8888 ? sizeof(u32) : sizeof(u16);
const u32 clutTotalColors = clutMaxBytes_ / bytesPerColor; const u32 clutTotalColors = clutMaxBytes_ / bytesPerColor;
TexCacheEntry::Status alphaStatus = CheckAlpha(clutBuf_, getClutDestFormatVulkan(clutFormat), clutTotalColors, clutTotalColors, 1); TexCacheEntry::TexStatus alphaStatus = CheckAlpha(clutBuf_, getClutDestFormatVulkan(clutFormat), clutTotalColors, clutTotalColors, 1);
gstate_c.SetTextureFullAlpha(alphaStatus == TexCacheEntry::STATUS_ALPHA_FULL); gstate_c.SetTextureFullAlpha(alphaStatus == TexCacheEntry::STATUS_ALPHA_FULL);
framebufferManager_->RebindFramebuffer(); framebufferManager_->RebindFramebuffer();
@ -673,7 +673,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry, bool replaceIm
entry->status &= ~TexCacheEntry::STATUS_BAD_MIPS; entry->status &= ~TexCacheEntry::STATUS_BAD_MIPS;
} }
if (replaced.Valid()) { if (replaced.Valid()) {
entry->SetAlphaStatus(TexCacheEntry::Status(replaced.AlphaStatus())); entry->SetAlphaStatus(TexCacheEntry::TexStatus(replaced.AlphaStatus()));
} }
entry->vkTex->texture_->EndCreate(cmdInit); entry->vkTex->texture_->EndCreate(cmdInit);
} }
@ -703,7 +703,7 @@ VkFormat TextureCacheVulkan::GetDestFormat(GETextureFormat format, GEPaletteForm
} }
} }
TexCacheEntry::Status TextureCacheVulkan::CheckAlpha(const u32 *pixelData, VkFormat dstFmt, int stride, int w, int h) { TexCacheEntry::TexStatus TextureCacheVulkan::CheckAlpha(const u32 *pixelData, VkFormat dstFmt, int stride, int w, int h) {
CheckAlphaResult res; CheckAlphaResult res;
switch (dstFmt) { switch (dstFmt) {
case VULKAN_4444_FORMAT: case VULKAN_4444_FORMAT:
@ -721,7 +721,7 @@ TexCacheEntry::Status TextureCacheVulkan::CheckAlpha(const u32 *pixelData, VkFor
break; break;
} }
return (TexCacheEntry::Status)res; return (TexCacheEntry::TexStatus)res;
} }
void TextureCacheVulkan::LoadTextureLevel(TexCacheEntry &entry, uint8_t *writePtr, int rowPitch, int level, int scaleFactor, VkFormat dstFmt) { void TextureCacheVulkan::LoadTextureLevel(TexCacheEntry &entry, uint8_t *writePtr, int rowPitch, int level, int scaleFactor, VkFormat dstFmt) {
@ -754,7 +754,7 @@ void TextureCacheVulkan::LoadTextureLevel(TexCacheEntry &entry, uint8_t *writePt
if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) { if ((entry.status & TexCacheEntry::STATUS_CHANGE_FREQUENT) == 0) {
// TODO: When we decode directly, this can be more expensive (maybe not on mobile?) // TODO: When we decode directly, this can be more expensive (maybe not on mobile?)
// This does allow us to skip alpha testing, though. // This does allow us to skip alpha testing, though.
TexCacheEntry::Status alphaStatus = CheckAlpha(pixelData, dstFmt, decPitch / bpp, w, h); TexCacheEntry::TexStatus alphaStatus = CheckAlpha(pixelData, dstFmt, decPitch / bpp, w, h);
entry.SetAlphaStatus(alphaStatus, level); entry.SetAlphaStatus(alphaStatus, level);
} else { } else {
entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN); entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN);
@ -854,4 +854,4 @@ std::vector<std::string> TextureCacheVulkan::DebugGetSamplerIDs() const {
std::string TextureCacheVulkan::DebugGetSamplerString(std::string id, DebugShaderStringType stringType) { std::string TextureCacheVulkan::DebugGetSamplerString(std::string id, DebugShaderStringType stringType) {
return samplerCache_.DebugGetSamplerString(id, stringType); return samplerCache_.DebugGetSamplerString(id, stringType);
} }

View File

@ -125,7 +125,7 @@ protected:
private: private:
void LoadTextureLevel(TexCacheEntry &entry, uint8_t *writePtr, int rowPitch, int level, int scaleFactor, VkFormat dstFmt); void LoadTextureLevel(TexCacheEntry &entry, uint8_t *writePtr, int rowPitch, int level, int scaleFactor, VkFormat dstFmt);
VkFormat GetDestFormat(GETextureFormat format, GEPaletteFormat clutFormat) const; VkFormat GetDestFormat(GETextureFormat format, GEPaletteFormat clutFormat) const;
TexCacheEntry::Status CheckAlpha(const u32 *pixelData, VkFormat dstFmt, int stride, int w, int h); TexCacheEntry::TexStatus CheckAlpha(const u32 *pixelData, VkFormat dstFmt, int stride, int w, int h);
void UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) override; void UpdateCurrentClut(GEPaletteFormat clutFormat, u32 clutBase, bool clutIndexIsSimple) override;
void ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) override; void ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFramebuffer *framebuffer) override;

View File

@ -364,17 +364,17 @@ void ReportFinishScreen::update() {
I18NCategory *rp = GetI18NCategory("Reporting"); I18NCategory *rp = GetI18NCategory("Reporting");
if (!setStatus_) { if (!setStatus_) {
Reporting::Status status = Reporting::GetStatus(); Reporting::ReportStatus status = Reporting::GetStatus();
switch (status) { switch (status) {
case Reporting::Status::WORKING: case Reporting::ReportStatus::WORKING:
resultNotice_->SetText(rp->T("FeedbackSubmitDone", "Your data has been submitted.")); resultNotice_->SetText(rp->T("FeedbackSubmitDone", "Your data has been submitted."));
break; break;
case Reporting::Status::FAILING: case Reporting::ReportStatus::FAILING:
resultNotice_->SetText(rp->T("FeedbackSubmitFail", "Could not submit data to server. Try updating PPSSPP.")); resultNotice_->SetText(rp->T("FeedbackSubmitFail", "Could not submit data to server. Try updating PPSSPP."));
break; break;
case Reporting::Status::BUSY: case Reporting::ReportStatus::BUSY:
default: default:
// Can't update yet. // Can't update yet.
break; break;