Re: [Mesa-dev] [PATCH 02/10] util: Add a virtual memory allocator

2018-05-03 Thread Jason Ekstrand
On Thu, May 3, 2018 at 6:12 PM, Kenneth Graunke wrote: > From: Jason Ekstrand > > This is simple linear-walk first-fit allocator roughly based on the > allocator in the radeon winsys code. This allocator has two primary > functional differences: > > 1) It cleanly returns 0 on allocation failur

[Mesa-dev] [PATCH 02/10] util: Add a virtual memory allocator

2018-05-03 Thread Kenneth Graunke
From: Jason Ekstrand This is simple linear-walk first-fit allocator roughly based on the allocator in the radeon winsys code. This allocator has two primary functional differences: 1) It cleanly returns 0 on allocation failure 2) It allocates addresses top-down instead of bottom-up. The sec