OSDN Git Service

util/ralloc: Remove double zero'ing of rzalloc buffers
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 10 May 2016 21:22:13 +0000 (14:22 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 11 May 2016 05:54:46 +0000 (22:54 -0700)
commit2c1c060b031a7c179653ee83f28f7325c47ebd04
treef2d4a852104ca544a7f4fba09bfb1e48cdf13046
parente3d43dc5eae5271e2c87bab702aa7409d3dd0b23
util/ralloc: Remove double zero'ing of rzalloc buffers

Juha-Pekka found this back in May 2015:
<1430915727-28677-1-git-send-email-juhapekka.heikkila@gmail.com>

From the discussion, obviously it would be preferable to make
ralloc_size no longer return zeroed memory, but Juha-Pekka found that
it would break Mesa.

In <56AF1C57.2030904@gmail.com>, Juha-Pekka mentioned that patches
exist to fix i965 when ralloc_size is fixed to not zero memory, but
the patches have not made their way to mesa-dev yet.

For now, let's stop doing the double zeroing of rzalloc buffers.

v2:
 * Move ralloc_size code to rzalloc_size, and add a comment as
   suggested by Ken.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/ralloc.c