[Mesa-dev] [PATCH 3/7] mesa: correctly manage GroupStackDepth

Ilia Mirkin imirkin at alum.mit.edu
Sun Nov 22 15:53:58 PST 2015


On Sun, Nov 22, 2015 at 6:50 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 22 November 2015 at 23:22, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> There are some places that you're not fixing up...
> I thought I fixed all cases - which ones do you have in mind ? The
> ones in debug_destroy() or the comparison in _mesa_PushDebugGroup() ?

There was a check for <= 0 which would now have to be <= 1 I guess?
And something else, I already forgot.

>
>> would this
>> alternatively be resolved by returning GroupStackDepth+1 in
>> _mesa_get_debug_state_int and leaving everything else alone?
>>
> True and it will result in a shorter patch. Then again the name would
> be wrong :-\

So rename it to CurrentGroup or something. Having to constantly do n-1
everywhere increases the likelihood of bugs/misunderstanding down the
line.

  -ilia


More information about the mesa-dev mailing list