Re: [Mesa-dev] [PATCH 2/2] mesa: Dynamically allocate the matrix stack.

2016-08-03 Thread Brian Paul
Just two minor things below. On 08/03/2016 11:27 AM, Eric Anholt wrote: By allocating and initializing the matrices at context creation, the OS can't even overcommit the pages. This saves about 63k (out of 946k) of maximum memory size according to massif on simulated vc4

[Mesa-dev] [PATCH 2/2] mesa: Dynamically allocate the matrix stack.

2016-08-03 Thread Eric Anholt
By allocating and initializing the matrices at context creation, the OS can't even overcommit the pages. This saves about 63k (out of 946k) of maximum memory size according to massif on simulated vc4 glsl-algebraic-add-add-1. It also means we could potentially relax the maximum stack sizes, but