diff options
author | Dave Airlie <airlied@linux.ie> | 2007-11-04 21:50:58 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-02-07 00:09:38 -0500 |
commit | bc5f4523f772cc7629c5c5a46cf4f2a07a5500b8 (patch) | |
tree | 8fa2f5194bb05d7e789e5d24a0fe3a7456568146 /drivers/char/drm/savage_state.c | |
parent | 8562b3f25d6e23c9d9e48a32672944d1e8a2aa97 (diff) |
drm: run cleanfile across drm tree
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/savage_state.c')
-rw-r--r-- | drivers/char/drm/savage_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/drm/savage_state.c b/drivers/char/drm/savage_state.c index bf8e0e10fe21..5f6238fdf1fa 100644 --- a/drivers/char/drm/savage_state.c +++ b/drivers/char/drm/savage_state.c | |||
@@ -512,7 +512,7 @@ static int savage_dispatch_vb_prim(drm_savage_private_t * dev_priv, | |||
512 | DMA_DRAW_PRIMITIVE(count, prim, skip); | 512 | DMA_DRAW_PRIMITIVE(count, prim, skip); |
513 | 513 | ||
514 | if (vb_stride == vtx_size) { | 514 | if (vb_stride == vtx_size) { |
515 | DMA_COPY(&vtxbuf[vb_stride * start], | 515 | DMA_COPY(&vtxbuf[vb_stride * start], |
516 | vtx_size * count); | 516 | vtx_size * count); |
517 | } else { | 517 | } else { |
518 | for (i = start; i < start + count; ++i) { | 518 | for (i = start; i < start + count; ++i) { |
@@ -742,7 +742,7 @@ static int savage_dispatch_vb_idx(drm_savage_private_t * dev_priv, | |||
742 | while (n != 0) { | 742 | while (n != 0) { |
743 | /* Can emit up to 255 vertices (85 triangles) at once. */ | 743 | /* Can emit up to 255 vertices (85 triangles) at once. */ |
744 | unsigned int count = n > 255 ? 255 : n; | 744 | unsigned int count = n > 255 ? 255 : n; |
745 | 745 | ||
746 | /* Check indices */ | 746 | /* Check indices */ |
747 | for (i = 0; i < count; ++i) { | 747 | for (i = 0; i < count; ++i) { |
748 | if (idx[i] > vb_size / (vb_stride * 4)) { | 748 | if (idx[i] > vb_size / (vb_stride * 4)) { |
@@ -933,7 +933,7 @@ static int savage_dispatch_draw(drm_savage_private_t * dev_priv, | |||
933 | /* j was check in savage_bci_cmdbuf */ | 933 | /* j was check in savage_bci_cmdbuf */ |
934 | ret = savage_dispatch_vb_idx(dev_priv, | 934 | ret = savage_dispatch_vb_idx(dev_priv, |
935 | &cmd_header, (const uint16_t *)cmdbuf, | 935 | &cmd_header, (const uint16_t *)cmdbuf, |
936 | (const uint32_t *)vtxbuf, vb_size, | 936 | (const uint32_t *)vtxbuf, vb_size, |
937 | vb_stride); | 937 | vb_stride); |
938 | cmdbuf += j; | 938 | cmdbuf += j; |
939 | break; | 939 | break; |