[Mesa-dev] [PATCH] mesa/vbo: fix invalid min/max indexes

Ilia Mirkin imirkin at alum.mit.edu
Mon May 8 21:29:21 UTC 2017


On Mon, May 8, 2017 at 5:27 PM, Rob Clark <robdclark at gmail.com> wrote:
> On Mon, May 8, 2017 at 4:57 PM, Marek Olšák <maraeo at gmail.com> wrote:
>> I personally find the assertions unnecessary because the bug has been
>> discovered and fixed by this patch, and this code is unlikely to
>> change. Anyway:
>>
>> Reviewed-by: Marek Olšák <marek.olsak at amd.com>
>
> I don't suppose there is something like debug_assert() (ie. only
> defined for --enable-debug builds) for mesa code?  That was really
> what I wanted there.  Maybe I'll just put #ifdef DEBUG / #endif around
> it..

Yeah. It's called "assert" :)


More information about the mesa-dev mailing list