projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nvc0: fix valid range for shader buffers
[mesa.git]
/
src
/
gallium
/
drivers
/
nouveau
/
nvc0
/
nvc0_video_bsp.c
diff --git
a/src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c
index c53f946a762239f217cab8dfff1d394519d039ea..af072a8acdc464619094c422f562966d4b360940 100644
(file)
--- a/
src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c
+++ b/
src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c
@@
-64,7
+64,7
@@
nvc0_decoder_bsp_next(struct nouveau_vp3_decoder *dec,
bsp_size += num_bytes[i];
bsp_size += 256; /* the 4 end markers */
- if (
!bsp_bo ||
bsp_size > bsp_bo->size) {
+ if (bsp_size > bsp_bo->size) {
union nouveau_bo_config cfg;
struct nouveau_bo *tmp_bo = NULL;