From: Jean Guyader Date: Wed, 25 Mar 2009 17:10:06 +0000 (+0000) Subject: Read the resolution from PIPEASRC. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2ce3c06542da53a0c1c0692c2a0e9b1ed3303718;p=xenclient%2Fioemu.git Read the resolution from PIPEASRC. --- diff --git a/intel.c b/intel.c index f988c46c..a790d2f5 100644 --- a/intel.c +++ b/intel.c @@ -29,8 +29,7 @@ #define REG_DR_DSPBSTRIDE 0x71188 #define REG_DR_PIPEBCONF 0x71008 -#define REG_DE_HBLANK_A 0x60004 -#define REG_DE_VBLANK_A 0x60010 +#define REG_DE_PIPEASRC 0x6001c extern int vga_passthrough; uint32_t guest_framebuffer; @@ -408,8 +407,8 @@ void intel_focus(int focus) if (focus) { if (!is_linear()) { IntelPitch = intel_get_reg(REG_DR_DSPASTRIDE); - IntelX = (intel_get_reg(REG_DE_HBLANK_A) & 0xfff) + 1; - IntelY = (intel_get_reg(REG_DE_VBLANK_A) & 0xfff) + 1; + IntelX = ((intel_get_reg(REG_DE_PIPEASRC) >> 16) & 0xfff) + 1; + IntelY = (intel_get_reg(REG_DE_PIPEASRC) & 0xfff) + 1; INTEL_DEBUG("Resolution is %dx%d\n", IntelX, IntelY); } refresh = 1;