mirror of https://github.com/PCSX2/pcsx2.git
GSdx: fixed the crash when booting through the bios
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1600 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
a2c4aad28e
commit
3435ca8b74
|
@ -377,15 +377,28 @@ REG64_(GSReg, IMR)
|
|||
REG_END
|
||||
|
||||
REG64_(GSReg, PMODE)
|
||||
uint32 EN1:1;
|
||||
uint32 EN2:1;
|
||||
uint32 CRTMD:3;
|
||||
uint32 MMOD:1;
|
||||
uint32 AMOD:1;
|
||||
uint32 SLBG:1;
|
||||
uint32 ALP:8;
|
||||
uint32 _PAD:16;
|
||||
uint32 _PAD1:32;
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
uint32 EN1:1;
|
||||
uint32 EN2:1;
|
||||
uint32 CRTMD:3;
|
||||
uint32 MMOD:1;
|
||||
uint32 AMOD:1;
|
||||
uint32 SLBG:1;
|
||||
uint32 ALP:8;
|
||||
uint32 _PAD:16;
|
||||
uint32 _PAD1:32;
|
||||
};
|
||||
|
||||
struct
|
||||
{
|
||||
uint32 EN:2;
|
||||
uint32 _PAD2:30;
|
||||
uint32 _PAD3:32;
|
||||
};
|
||||
};
|
||||
REG_END
|
||||
|
||||
REG64_(GSReg, SIGLBLID)
|
||||
|
|
|
@ -71,7 +71,7 @@ __declspec(align(16)) class GSClut : public GSAlignedClass<16>
|
|||
template<int n> void WriteCLUT16_CSM2(const GIFRegTEX0& TEX0, const GIFRegTEXCLUT& TEXCLUT);
|
||||
template<int n> void WriteCLUT16S_CSM2(const GIFRegTEX0& TEX0, const GIFRegTEXCLUT& TEXCLUT);
|
||||
|
||||
void WriteCLUT_NULL(const GIFRegTEX0& TEX0, const GIFRegTEXCLUT& TEXCLUT) {ASSERT(0);} // xenosaga 3
|
||||
void WriteCLUT_NULL(const GIFRegTEX0& TEX0, const GIFRegTEXCLUT& TEXCLUT) {} // xenosaga 3, bios
|
||||
|
||||
static void WriteCLUT_T32_I8_CSM1(const uint32* RESTRICT src, uint16* RESTRICT clut);
|
||||
static void WriteCLUT_T32_I4_CSM1(const uint32* RESTRICT src, uint16* RESTRICT clut);
|
||||
|
|
|
@ -80,7 +80,7 @@ public:
|
|||
|
||||
virtual bool CanUpscale()
|
||||
{
|
||||
return !m_nativeres;
|
||||
return !m_nativeres && m_regs->PMODE.EN != 0; // upscale ratio depends on the display size, with no output it may not be set correctly (ps2 logo to game transition)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue