diff options
author | Dave Airlie <[email protected]> | 2011-05-12 15:01:33 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-05-13 09:26:16 +1000 |
commit | 240049adfa7af6e60977139492a873933b353a0a (patch) | |
tree | 1a0e77b38532d63300bff0fe16ea1ecf04f3ffd5 /src/mesa/main/samplerobj.c | |
parent | d79a4a612bae66581caf21a74bd745ec51a18e80 (diff) |
r600g: make range/block act more like a page table
only allocate the blocks ptr in the range if we ever have one,
otherwise don't bother wasting the memory.
valgrind glxinfo
before:
==967== in use at exit: 419,754 bytes in 706 blocks
==967== total heap usage: 3,552 allocs, 2,846 frees, 3,550,131 bytes allocated
after:
==5227== in use at exit: 419,754 bytes in 706 blocks
==5227== total heap usage: 3,452 allocs, 2,746 frees, 3,140,531 bytes allocate
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/main/samplerobj.c')
0 files changed, 0 insertions, 0 deletions