Re: [Mesa-dev] [PATCH 07/10] i965: Unify query object BO reallocation code.

2013-02-28 Thread Eric Anholt
Kenneth Graunke writes: > If we haven't allocated a BO yet, we need to do that. Or, if there > isn't enough room to write another pair of values, we need to gather up > the existing results and start a new one. This is simple enough. > > However, the old code was awkwardly split into two blocks

[Mesa-dev] [PATCH 07/10] i965: Unify query object BO reallocation code.

2013-02-28 Thread Kenneth Graunke
If we haven't allocated a BO yet, we need to do that. Or, if there isn't enough room to write another pair of values, we need to gather up the existing results and start a new one. This is simple enough. However, the old code was awkwardly split into two blocks, with a write_depth_count() placed