mirror of https://github.com/PCSX2/pcsx2.git
GS: Fix enum type return warnings
This commit is contained in:
parent
c0e4883987
commit
8766e1fa57
|
@ -781,7 +781,7 @@ REG_END2
|
||||||
__forceinline bool DoFirstPass() const { return !ATE || ATST != ATST_NEVER; } // not all pixels fail automatically
|
__forceinline bool DoFirstPass() const { return !ATE || ATST != ATST_NEVER; } // not all pixels fail automatically
|
||||||
__forceinline bool DoSecondPass() const { return ATE && ATST != ATST_ALWAYS && AFAIL != AFAIL_KEEP; } // pixels may fail, write fb/z
|
__forceinline bool DoSecondPass() const { return ATE && ATST != ATST_ALWAYS && AFAIL != AFAIL_KEEP; } // pixels may fail, write fb/z
|
||||||
__forceinline bool NoSecondPass() const { return ATE && ATST != ATST_ALWAYS && AFAIL == AFAIL_KEEP; } // pixels may fail, no output
|
__forceinline bool NoSecondPass() const { return ATE && ATST != ATST_ALWAYS && AFAIL == AFAIL_KEEP; } // pixels may fail, no output
|
||||||
__forceinline u32 GetAFAIL(u32 fpsm) const { return (AFAIL == AFAIL_RGB_ONLY && (fpsm & 0xF) != 0) ? AFAIL_FB_ONLY : AFAIL; } // FB Only when not 32bit Framebuffer
|
__forceinline u32 GetAFAIL(u32 fpsm) const { return (AFAIL == AFAIL_RGB_ONLY && (fpsm & 0xF) != 0) ? static_cast<u32>(AFAIL_FB_ONLY) : AFAIL; } // FB Only when not 32bit Framebuffer
|
||||||
REG_END2
|
REG_END2
|
||||||
|
|
||||||
REG64_(GIFReg, TEX0)
|
REG64_(GIFReg, TEX0)
|
||||||
|
|
|
@ -5716,7 +5716,7 @@ void GSDeviceVK::RenderHW(GSHWDrawConfig& config)
|
||||||
|
|
||||||
// If this is the first draw to the target as a feedback loop, make sure we re-generate the texture descriptor.
|
// If this is the first draw to the target as a feedback loop, make sure we re-generate the texture descriptor.
|
||||||
// Otherwise, we might have a previous descriptor left over, that has the RT in a different state.
|
// Otherwise, we might have a previous descriptor left over, that has the RT in a different state.
|
||||||
m_dirty_flags |= (skip_first_barrier ? DIRTY_FLAG_TFX_TEXTURE_RT : 0);
|
m_dirty_flags |= (skip_first_barrier ? static_cast<u32>(DIRTY_FLAG_TFX_TEXTURE_RT) : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Begin render pass if new target or out of the area.
|
// Begin render pass if new target or out of the area.
|
||||||
|
|
Loading…
Reference in New Issue