summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-12-29 11:26:11 -0800
committerEric Anholt <eric@anholt.net>2009-02-24 12:20:58 -0800
commit704177b5dd0ab7a5f5bef937eac53d725bc509b5 (patch)
treeacbf2ba649881814fc8a353d33f884a930e7a8e6
parent08683d1d053875bcacd7c358d66ef2bfad458a56 (diff)
downloadxf86-video-intel-704177b5dd0ab7a5f5bef937eac53d725bc509b5.tar.gz
xf86-video-intel-704177b5dd0ab7a5f5bef937eac53d725bc509b5.tar.bz2
xf86-video-intel-704177b5dd0ab7a5f5bef937eac53d725bc509b5.zip
Remove logical context setup.
This should be a noop. If it wasn't a noop, it means that on pre-g33 chipsets we were spamming some data into a page of system memory because we used a virtual instead of a physical address. It was also supposed to not work when we submit it from a batchbuffer, as we have been doing for some time now. This code has existed since about the beginning of the driver's existence, with no justification. (cherry picked from commit 45f45c73469f1bd46a1b6fb206f2e9e5e4fd66b3)
-rw-r--r--src/i830.h2
-rw-r--r--src/i830_driver.c11
-rw-r--r--src/i830_memory.c9
3 files changed, 0 insertions, 22 deletions
diff --git a/src/i830.h b/src/i830.h
index e88ccedf7..e740afae1 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -456,8 +456,6 @@ typedef struct _I830Rec {
void (*PointerMoved)(int, int, int);
CreateScreenResourcesProcPtr CreateScreenResources;
- i830_memory *logical_context;
-
i830_memory *power_context;
#ifdef XF86DRI
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 92f1554fa..2b734c9b4 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2596,17 +2596,6 @@ IntelEmitInvarientState(ScrnInfoPtr pScrn)
if (*pI830->last_3d != LAST_3D_OTHER)
return;
- ctx_addr = pI830->logical_context->offset;
- assert((pI830->logical_context->offset & 2047) == 0);
- {
- BEGIN_BATCH(2);
- OUT_BATCH(MI_SET_CONTEXT);
- OUT_BATCH(pI830->logical_context->offset |
- CTXT_NO_RESTORE |
- CTXT_PALETTE_SAVE_DISABLE | CTXT_PALETTE_RESTORE_DISABLE);
- ADVANCE_BATCH();
- }
-
if (!IS_I965G(pI830))
{
if (IS_I9XX(pI830))
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 2053d06b0..fa22782df 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -1434,15 +1434,6 @@ i830_allocate_2d_memory(ScrnInfoPtr pScrn)
pI830->SWCursor = TRUE;
}
- /* Space for the X Server's 3D context. 32k is fine for right now. */
- pI830->logical_context = i830_allocate_memory(pScrn, "logical 3D context",
- KB(32), GTT_PAGE_SIZE, 0);
- if (pI830->logical_context == NULL) {
- xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
- "Failed to allocate logical context space.\n");
- return FALSE;
- }
-
if (pI830->memory_manager == NULL) {
pI830->fake_bufmgr_mem = i830_allocate_memory(pScrn, "fake bufmgr",
MB(1), GTT_PAGE_SIZE, 0);