summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-04-03 14:28:55 -0700
committerEric Anholt <anholt@leguin.anholt.net>2006-04-06 16:00:14 -0700
commitb20b466aaed54708ae9e4676623c8c394a6f00d5 (patch)
treea5df1661883bb2678d3cd3bf54c1d3945821f12f
parentd960c3ca1512a58a53b5c24702cb5c97124817ee (diff)
Remove the now-unused displaySize and pipeDisplaySize.
-rw-r--r--src/i830.h2
-rw-r--r--src/i830_driver.c85
2 files changed, 4 insertions, 83 deletions
diff --git a/src/i830.h b/src/i830.h
index a6cd0402..d96e5aae 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -397,14 +397,12 @@ typedef struct _I830Rec {
/* These are indexed by the display types */
Bool displayAttached[NumDisplayTypes];
Bool displayPresent[NumDisplayTypes];
- BoxRec displaySize[NumDisplayTypes];
/* [0] is Pipe A, [1] is Pipe B. */
int availablePipes;
int pipeDevices[MAX_DISPLAY_PIPES];
/* [0] is display plane A, [1] is display plane B. */
Bool pipeEnabled[MAX_DISPLAY_PIPES];
- BoxRec pipeDisplaySize[MAX_DISPLAY_PIPES];
int planeEnabled[MAX_DISPLAY_PIPES];
/* Driver phase/state information */
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 813b20ee..06f14d70 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1106,54 +1106,6 @@ PrintDisplayDeviceInfo(ScrnInfoPtr pScrn)
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"No active displays on Pipe %c.\n", PIPE_NAME(n));
}
-
- if (pI830->pipeDisplaySize[n].x2 != 0) {
- xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Lowest common panel size for pipe %c is %d x %d\n",
- PIPE_NAME(n), pI830->pipeDisplaySize[n].x2,
- pI830->pipeDisplaySize[n].y2);
- } else if (pI830->pipeEnabled[n] && pipe & ~PIPE_CRT_ACTIVE) {
- xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "No display size information available for pipe %c.\n",
- PIPE_NAME(n));
- }
- }
-}
-
-static void
-GetPipeSizes(ScrnInfoPtr pScrn)
-{
- I830Ptr pI830 = I830PTR(pScrn);
- int pipe, n;
- DisplayType i;
-
- DPRINTF(PFX, "GetPipeSizes\n");
-
-
- for (n = 0; n < pI830->availablePipes; n++) {
- pipe = (pI830->operatingDevices >> PIPE_SHIFT(n)) & PIPE_ACTIVE_MASK;
- pI830->pipeDisplaySize[n].x1 = pI830->pipeDisplaySize[n].y1 = 0;
- pI830->pipeDisplaySize[n].x2 = pI830->pipeDisplaySize[n].y2 = 4096;
- for (i = 0; i < NumKnownDisplayTypes; i++) {
- if (pipe & (1 << i) & PIPE_SIZED_DISP_MASK) {
- if (pI830->displaySize[i].x2 != 0) {
- xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Size of device %s is %d x %d\n",
- displayDevices[i],
- pI830->displaySize[i].x2,
- pI830->displaySize[i].y2);
- if (pI830->displaySize[i].x2 < pI830->pipeDisplaySize[n].x2)
- pI830->pipeDisplaySize[n].x2 = pI830->displaySize[i].x2;
- if (pI830->displaySize[i].y2 < pI830->pipeDisplaySize[n].y2)
- pI830->pipeDisplaySize[n].y2 = pI830->displaySize[i].y2;
- }
- }
- }
-
- if (pI830->pipeDisplaySize[n].x2 == 4096)
- pI830->pipeDisplaySize[n].x2 = 0;
- if (pI830->pipeDisplaySize[n].y2 == 4096)
- pI830->pipeDisplaySize[n].y2 = 0;
}
}
@@ -1172,16 +1124,15 @@ I830DetectDisplayDevice(ScrnInfoPtr pScrn)
"\t\t Option \"DisplayInfo\" \"FALSE\"\n"
"\t to the Device section of your XF86Config file.\n");
for (i = 0; i < NumKnownDisplayTypes; i++) {
+ int unusedx, unusedy;
if (GetDisplayInfo(pScrn, 1 << i, &pI830->displayAttached[i],
&pI830->displayPresent[i],
- &pI830->displaySize[i].x2,
- &pI830->displaySize[i].y2)) {
+ &unusedx, &unusedy)) {
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Display Info: %s: attached: %s, present: %s, size: "
+ "Display Info: %s: attached: %s, present: %s: "
"(%d,%d)\n", displayDevices[i],
BOOLTOSTRING(pI830->displayAttached[i]),
- BOOLTOSTRING(pI830->displayPresent[i]),
- pI830->displaySize[i].x2, pI830->displaySize[i].y2);
+ BOOLTOSTRING(pI830->displayPresent[i]));
}
}
}
@@ -1195,8 +1146,6 @@ I830DetectDisplayDevice(ScrnInfoPtr pScrn)
pI830->pipeEnabled[n] = FALSE;
}
- GetPipeSizes(pScrn);
-
return TRUE;
}
@@ -4946,32 +4895,6 @@ I830DetectMonitorChange(ScrnInfoPtr pScrn)
#endif /* 0 */
}
-Bool
-I830CheckModeSupport(ScrnInfoPtr pScrn, int x, int y, int mode)
-{
- I830Ptr pI830 = I830PTR(pScrn);
- Bool ret = TRUE;
-
- if (pI830->Clone) {
- if (pI830->pipeDisplaySize[0].x2 != 0) {
- if (x > pI830->pipeDisplaySize[0].x2 ||
- y > pI830->pipeDisplaySize[0].y2) {
- xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Bad Clone Mode removing\n");
- return FALSE;
- }
- }
- if (pI830->pipeDisplaySize[1].x2 != 0) {
- if (x > pI830->pipeDisplaySize[1].x2 ||
- y > pI830->pipeDisplaySize[1].y2) {
- xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Bad Clone Mode removing\n");
- return FALSE;
- }
- }
- }
-
- return ret;
-}
-
/*
* This gets called when gaining control of the VT, and from ScreenInit().
*/