nouveau/video: wrap assertion within #ifndef NDEBUG
authorMauro Rossi <issor.oruam@gmail.com>
Mon, 1 Feb 2016 22:37:42 +0000 (23:37 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 1 Feb 2016 22:45:19 +0000 (17:45 -0500)
commit6711592c2f30307948487a448094e0ff5dc1aedc
tree998f0dff9c246682a754d441f82d367ca8e0c021
parent047b91771845453826dcdd0019adc7333348b158
nouveau/video: wrap assertion within #ifndef NDEBUG

The change is necessary to avoid the following building error in android:

external/mesa/src/gallium/drivers/nouveau/nouveau_vp3_video_bsp.c: In function 'nouveau_vp3_bsp_next':
external/mesa/src/gallium/drivers/nouveau/nouveau_vp3_video_bsp.c:269:14: error: 'bsp_bo' undeclared (first use in this function)
       assert(bsp_bo->size >= str_bsp->w0[0] + num_bytes[i]);
              ^
This matches the declaration of the variables in question.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nouveau_vp3_video_bsp.c