summaryrefslogtreecommitdiff
path: root/shared-core/nouveau_mem.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2008-12-10 15:47:28 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-12-10 15:50:22 -0800
commit9583c099b4a08b49e03f7b461c344b6d277fd262 (patch)
treee3c17d4b9ee2c2a063c3e30e0a650fc0c9b6cfa7 /shared-core/nouveau_mem.c
parentc34539e8bb5568b1d6059abf139dd08e07e84eea (diff)
Revert "Merge branch 'modesetting-gem'"
This reverts commit 6656db10551bbb8770dd945b6d81d5138521f208. We really just want the libdrm and ioctl bits, not all the driver stuff.
Diffstat (limited to 'shared-core/nouveau_mem.c')
-rw-r--r--shared-core/nouveau_mem.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/shared-core/nouveau_mem.c b/shared-core/nouveau_mem.c
index 1078a9c5..d79c1a52 100644
--- a/shared-core/nouveau_mem.c
+++ b/shared-core/nouveau_mem.c
@@ -34,7 +34,6 @@
#include "drm.h"
#include "drm_sarea.h"
#include "nouveau_drv.h"
-#include "nv50_kms_wrapper.h"
static struct mem_block *
split_block(struct mem_block *p, uint64_t start, uint64_t size,
@@ -121,17 +120,6 @@ static struct mem_block *find_block(struct mem_block *heap, uint64_t start)
return NULL;
}
-struct mem_block *find_block_by_handle(struct mem_block *heap, drm_handle_t handle)
-{
- struct mem_block *p;
-
- list_for_each(p, heap)
- if (p->map_handle == handle)
- return p;
-
- return NULL;
-}
-
void nouveau_mem_free_block(struct mem_block *p)
{
p->file_priv = NULL;
@@ -746,30 +734,6 @@ void nouveau_mem_free(struct drm_device* dev, struct mem_block* block)
DRM_DEBUG("freeing 0x%llx type=0x%08x\n", block->start, block->flags);
- /* Check if the deallocations cause problems for our modesetting system. */
- if (drm_core_check_feature(dev, DRIVER_MODESET)) {
- if (dev_priv->card_type >= NV_50) {
- struct nv50_crtc *crtc = NULL;
- struct nv50_display *display = nv50_get_display(dev);
-
- list_for_each_entry(crtc, &display->crtcs, item) {
- if (crtc->fb->block == block) {
- crtc->fb->block = NULL;
-
- if (!crtc->blanked)
- crtc->blank(crtc, true);
- }
-
- if (crtc->cursor->block == block) {
- crtc->cursor->block = NULL;
-
- if (crtc->cursor->visible)
- crtc->cursor->hide(crtc);
- }
- }
- }
- }
-
if (block->flags&NOUVEAU_MEM_MAPPED)
drm_rmmap(dev, block->map);