mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 11:58:10 +02:00
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>
This commit is contained in:
parent
047b917718
commit
6711592c2f
1 changed files with 2 additions and 0 deletions
|
|
@ -266,7 +266,9 @@ nouveau_vp3_bsp_next(struct nouveau_vp3_decoder *dec, unsigned num_buffers,
|
|||
int i;
|
||||
|
||||
for (i = 0; i < num_buffers; ++i) {
|
||||
#ifndef NDEBUG
|
||||
assert(bsp_bo->size >= str_bsp->w0[0] + num_bytes[i]);
|
||||
#endif
|
||||
memcpy(dec->bsp_ptr, data[i], num_bytes[i]);
|
||||
dec->bsp_ptr += num_bytes[i];
|
||||
str_bsp->w0[0] += num_bytes[i];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue