diff options
author | Edward O'Callaghan <[email protected]> | 2015-12-04 15:27:18 +1100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-12-06 17:03:17 +0100 |
commit | be51020f2ad2ce8e8dc4d0f3a79186000fb01454 (patch) | |
tree | 5404db5712d9284eaf0e96bda9d90fad42ef46a1 /src/gallium/drivers/nouveau/nv30 | |
parent | 7e43a280793af50e826fb6183670de8e3d427d74 (diff) |
gallium/drivers/nouveau: Make use of ARRAY_SIZE macro
Signed-off-by: Edward O'Callaghan <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30')
-rw-r--r-- | src/gallium/drivers/nouveau/nv30/nv30_transfer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_transfer.c b/src/gallium/drivers/nouveau/nv30/nv30_transfer.c index 2452071762b..9ecbcd1087a 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_transfer.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_transfer.c @@ -155,7 +155,7 @@ nv30_transfer_rect_blit(XFER_ARGS) u32 format, stride; if (nouveau_pushbuf_space(push, 512, 8, 0) || - nouveau_pushbuf_refn (push, refs, sizeof(refs) / sizeof(refs[0]))) + nouveau_pushbuf_refn (push, refs, ARRAY_SIZE(refs))) return; /* various switches depending on cpp of the transfer */ |