From 9583c099b4a08b49e03f7b461c344b6d277fd262 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Wed, 10 Dec 2008 15:47:28 -0800 Subject: Revert "Merge branch 'modesetting-gem'" This reverts commit 6656db10551bbb8770dd945b6d81d5138521f208. We really just want the libdrm and ioctl bits, not all the driver stuff. --- shared-core/nouveau_mem.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'shared-core/nouveau_mem.c') 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); -- cgit v1.2.3