diff options
author | Eric Anholt <anholt@freebsd.org> | 2005-08-26 20:56:11 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2005-08-26 20:56:11 +0000 |
commit | c425ad1a34439d019edd589c32a7161d01b4d822 (patch) | |
tree | bbb5ce64e4b791cb01c62e144e3b3e7e4b86d829 /libdrm/xf86drmHash.c | |
parent | 5105f9ea59179c7129d3bf97734eb37e26ec68b0 (diff) |
Previously, drm_get_resource_start() and drm_get_resource_len() would
allocate the resource RF_ACTIVE, pull out the appropriate value, and
return it. However, allocating large framebuffers RF_ACTIVE would run
the system out of KVA, and this also left open the possibility of the
resource getting moved after getting the offset. Instead, when either
of these are called, allocate the resource if it isn't allocated
already (non-RF_ACTIVE) and store it in the DRM device, to be cleaned
up on lastclose.
Diffstat (limited to 'libdrm/xf86drmHash.c')
0 files changed, 0 insertions, 0 deletions