drm/libdrm/intel
Eric Anholt 78fa590a1d intel: Fix up math errors when allocating very large BOs.
The logbase2 would overflow and wrap the size around to 0, making the code
allocate a 4kb object instead.  By simplifying the code to just walk the
14-entry bucket array comparing sizes instead of indexing on
ffs(1 << logbase2(size)), we avoid silly math errors and have code of
approximately the same speed.

Many thanks to Simon Farnsworth for debugging and providing a working patch.
Bug #27365.
2009-07-06 13:11:03 -07:00
..
Makefile.am intel: don't count fences on 965 and later, as they don't use them. 2009-01-27 17:24:49 -08:00
intel_bufmgr.c libdrm/intel: Make get_pipe_from_crtc_id per-bufmgr. Return -1 on failure. 2009-05-14 16:58:14 -07:00
intel_bufmgr.h Add new drm_intel_get_pipe_from_crtc_id function. 2009-05-14 15:32:54 -07:00
intel_bufmgr_fake.c intel: NULL fake bo block when freeing in evict_all 2009-04-27 11:49:16 -07:00
intel_bufmgr_gem.c intel: Fix up math errors when allocating very large BOs. 2009-07-06 13:11:03 -07:00
intel_bufmgr_priv.h libdrm/intel: Make get_pipe_from_crtc_id per-bufmgr. Return -1 on failure. 2009-05-14 16:58:14 -07:00
intel_chipset.h intel: don't count fences on 965 and later, as they don't use them. 2009-01-27 17:24:49 -08:00
mm.c Move the renaming of mm.c symbols to #defines in the header. 2008-06-11 15:58:33 -07:00
mm.h Move the renaming of mm.c symbols to #defines in the header. 2008-06-11 15:58:33 -07:00