diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-08-23 15:28:53 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-08-23 15:28:53 +0200 |
commit | 056b6da899b93f5a1038111cbe6a1e8598d4aa32 (patch) | |
tree | 61ce557dc9d0bd2863cb93d8a81e6327e9515844 | |
parent | ebbfce22c79945884b7851857338e0fa7f12979c (diff) |
Remove unused surfaces_used
-rw-r--r-- | display/qxldd.h | 1 | ||||
-rw-r--r-- | display/res.c | 12 |
2 files changed, 1 insertions, 12 deletions
diff --git a/display/qxldd.h b/display/qxldd.h index 2cb2db4..82886a9 100644 --- a/display/qxldd.h +++ b/display/qxldd.h @@ -198,7 +198,6 @@ typedef struct DevRes { SurfaceInfo *surfaces_info; SurfaceInfo *free_surfaces; - UINT8 *surfaces_used; HANDLE driver; #ifdef DBG diff --git a/display/res.c b/display/res.c index e20dc96..d466ce7 100644 --- a/display/res.c +++ b/display/res.c @@ -377,10 +377,6 @@ void CleanGlobalRes() EngFreeMem(global_res[i].dynamic); global_res[i].dynamic = NULL; } - if (global_res[i].surfaces_used) { - EngFreeMem(global_res[i].surfaces_used); - global_res[i].surfaces_used = NULL; - } if (global_res[i].surfaces_info) { EngFreeMem(global_res[i].surfaces_info); global_res[i].surfaces_info = NULL; @@ -425,13 +421,7 @@ static void InitRes(PDev *pdev) PANIC(pdev, "Res dynamic allocation failed\n"); } - pdev->Res.surfaces_used = EngAllocMem(FL_ZERO_MEMORY, sizeof(UINT8) * pdev->n_surfaces, - ALLOC_TAG); - if (!pdev->Res.surfaces_used) { - PANIC(pdev, "Res surfaces_used allocation failed\n"); - } - - pdev->Res.surfaces_info = (SurfaceInfo *)EngAllocMem(FL_ZERO_MEMORY, + pdev->Res.surfaces_info = (SurfaceInfo *)EngAllocMem(FL_ZERO_MEMORY, sizeof(SurfaceInfo) * pdev->n_surfaces, ALLOC_TAG); if (!pdev->Res.surfaces_info) { |