summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNian Wu <nian.wu@intel.com>2007-03-24 17:00:13 +0800
committerNian Wu <nian.wu@intel.com>2007-03-24 17:00:13 +0800
commit6de3edcb52e6258f1af75e4f4bef73de1698445d (patch)
tree94826f4ae399667fc6f00df235f3bbc41033d738
parentd874aa31599da4777438cc51469afe9b66601f55 (diff)
parent1e6e675524461ef0eb1983de89e2877426571a55 (diff)
Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
-rw-r--r--src/i830_driver.c5
-rw-r--r--src/i830_tv.c14
2 files changed, 3 insertions, 16 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 20217538..229c26b8 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2739,7 +2739,7 @@ i830AdjustFrame(int scrnIndex, int x, int y, int flags)
{
/* Sync the engine before adjust frame */
i830WaitSync(pScrn);
- i830PipeSetBase(crtc, output->initial_x + x, output->initial_y + y);
+ i830PipeSetBase(crtc, crtc->desiredX + x, crtc->desiredY + y);
crtc->x = output->initial_x + x;
crtc->y = output->initial_y + y;
}
@@ -2856,8 +2856,6 @@ I830EnterVT(int scrnIndex, int flags)
ResetState(pScrn, TRUE);
SetHWOperatingState(pScrn);
- pScrn->AdjustFrame(scrnIndex, pScrn->frameX0, pScrn->frameY0, 0);
-
#ifdef XF86DRI
if (pI830->directRenderingEnabled) {
@@ -2910,6 +2908,7 @@ I830EnterVT(int scrnIndex, int flags)
/* Force invarient 3D state to be emitted */
*pI830->used3D = 1<<31;
+ pI830->last_3d = LAST_3D_OTHER;
return TRUE;
}
diff --git a/src/i830_tv.c b/src/i830_tv.c
index ac521c1c..43a4dd4d 100644
--- a/src/i830_tv.c
+++ b/src/i830_tv.c
@@ -1486,7 +1486,6 @@ i830_tv_create_resources(xf86OutputPtr output)
strlen (dev_priv->tv_format),
dev_priv->tv_format,
FALSE, TRUE);
- RRPostPendingProperty (output->randr_output, tv_format_atom);
if (err != 0) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"RRChangeOutputProperty error, %d\n", err);
@@ -1513,7 +1512,6 @@ i830_tv_create_resources(xf86OutputPtr output)
XA_INTEGER, 32, PropModeReplace,
1, &dev_priv->margin[i],
FALSE, TRUE);
- RRPostPendingProperty (output->randr_output, margin_atoms[i]);
if (err != 0) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"RRChangeOutputProperty error, %d\n", err);
@@ -1522,16 +1520,6 @@ i830_tv_create_resources(xf86OutputPtr output)
#endif /* RANDR_12_INTERFACE */
}
-static void
-i830_tv_commit (xf86OutputPtr output)
-{
-#ifdef RANDR_12_INTERFACE
- if (output->randr_output)
- RRPostPendingProperty (output->randr_output, tv_format_atom);
-#endif
- i830_output_commit (output);
-}
-
#ifdef RANDR_12_INTERFACE
static Bool
i830_tv_set_property(xf86OutputPtr output, Atom property,
@@ -1593,7 +1581,7 @@ static const xf86OutputFuncsRec i830_tv_output_funcs = {
.mode_fixup = i830_tv_mode_fixup,
.prepare = i830_output_prepare,
.mode_set = i830_tv_mode_set,
- .commit = i830_tv_commit,
+ .commit = i830_output_commit,
.detect = i830_tv_detect,
.get_modes = i830_tv_get_modes,
.destroy = i830_tv_destroy,