diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-10-25 17:55:31 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-12-22 00:33:20 +0100 |
commit | 77ee8f3825054f23b17e9c8f728f061defd86cdc (patch) | |
tree | b4e9e7a68d77ae400adc06a3bf935b23666e9046 /drivers/gpu/drm/via/via_drv.h | |
parent | drm/sman: rip out owner tracking (diff) | |
download | linux-77ee8f3825054f23b17e9c8f728f061defd86cdc.tar.xz linux-77ee8f3825054f23b17e9c8f728f061defd86cdc.zip |
drm/via: track user->memblock mapping with idr
Massive indirection through a hashtable for a simple key->pointer
look-up actually just adds bloat.
v2: Drop the misleading comment noted by Chris Wilson.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/via/via_drv.h')
-rw-r--r-- | drivers/gpu/drm/via/via_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/via_drv.h b/drivers/gpu/drm/via/via_drv.h index 9cf87d912325..108ea71f399d 100644 --- a/drivers/gpu/drm/via/via_drv.h +++ b/drivers/gpu/drm/via/via_drv.h @@ -91,6 +91,8 @@ typedef struct drm_via_private { struct drm_sman sman; int vram_initialized; int agp_initialized; + /** Mapping of userspace keys to mm objects */ + struct idr object_idr; unsigned long vram_offset; unsigned long agp_offset; drm_via_blitq_t blit_queues[VIA_NUM_BLIT_ENGINES]; |