projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gallium: add a cap for VIEWPORT_SUBPIXEL_BITS (v2)
[mesa.git]
/
src
/
gallium
/
drivers
/
nouveau
/
nvc0
/
nvc0_video_vp.c
diff --git
a/src/gallium/drivers/nouveau/nvc0/nvc0_video_vp.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_video_vp.c
index 91543782dfc098cf15e8ecb211ea9ff1fdcf901b..73d55148151241d816b5d4cdc59602086db2e55e 100644
(file)
--- a/
src/gallium/drivers/nouveau/nvc0/nvc0_video_vp.c
+++ b/
src/gallium/drivers/nouveau/nvc0/nvc0_video_vp.c
@@
-86,7
+86,7
@@
nvc0_decoder_vp(struct nouveau_vp3_decoder *dec, union pipe_desc desc,
#endif
{ dec->fw_bo, NOUVEAU_BO_RD | NOUVEAU_BO_VRAM },
};
- int num_refs =
sizeof(bo_refs)/sizeof(*
bo_refs) - !dec->fw_bo;
+ int num_refs =
ARRAY_SIZE(
bo_refs) - !dec->fw_bo;
#if NOUVEAU_VP3_DEBUG_FENCE
fence_extra = 4;