diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-04 17:09:11 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-10 08:56:56 -0700 |
commit | 0ec768e67aec8b1ded9bcf575ad1c0beb28cc0ca (patch) | |
tree | 4b1379f47447bb39ddc20a7bb543734c4b2c6967 /include/drm/i810_drm.h | |
parent | e65caeba9ed0e6c53830d944248aaae2228351ab (diff) |
intel: Add more intermediate sizes of cache buckets between powers of 2.
We had two cases recently where the rounding to powers of two hurt
badly: 4:2:0 YUV HD video frames would round up from 2.2MB to 4MB, and
Urban Terror was hitting aperture size limitations. For UT, this is
because mipmap trees for power of two texture sizes will land right in
the middle between two cache buckets.
By giving a few more sizes between powers of two, Urban Terror on my
945 ends up consuming 207MB of GEM objects instead of 272MB, and HD
video decode on Ironlake goes from 99MB to 75MB.
cairo-perf-diff of the benchmarks for gl and xlib shows a 1.09x and
1.06x speedup and a 1.07x, 1.08x, and 1.11x slowdown. From this, I
think this patch was really a no-op in terms of performance for these
CPU-bound workloads.
Diffstat (limited to 'include/drm/i810_drm.h')
0 files changed, 0 insertions, 0 deletions