diff options
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50/nv98_video_ppp.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv98_video_ppp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv98_video_ppp.c b/src/gallium/drivers/nouveau/nv50/nv98_video_ppp.c index 6b0b7148dcb..48f16211afc 100644 --- a/src/gallium/drivers/nouveau/nv50/nv98_video_ppp.c +++ b/src/gallium/drivers/nouveau/nv50/nv98_video_ppp.c @@ -40,7 +40,7 @@ nv98_decoder_setup_ppp(struct nouveau_vp3_decoder *dec, struct nouveau_vp3_video { dec->fence_bo, NOUVEAU_BO_WR | NOUVEAU_BO_GART }, #endif }; - unsigned num_refs = sizeof(bo_refs)/sizeof(*bo_refs); + unsigned num_refs = ARRAY_SIZE(bo_refs); for (i = 0; i < 2; ++i) { struct nv50_miptree *mt = (struct nv50_miptree *)target->resources[i]; |