diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-03-21 11:49:20 +0100 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-03-21 11:49:20 +0100 |
commit | 7f1f4c14eced51bf3f43764e2864693ba1c4a6d5 (patch) | |
tree | 6f2022214386d5b8b3cd7503f8a7b1611cfccb3d /src/mesa/drivers/dri/nouveau/nv20_state_fb.c | |
parent | bb324182fc7cd9cfaa62ee44bdd9287f1ed2ac7a (diff) |
dri/nouveau: Random cleanups.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv20_state_fb.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv20_state_fb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv20_state_fb.c b/src/mesa/drivers/dri/nouveau/nv20_state_fb.c index d638541df9..21da4f7af1 100644 --- a/src/mesa/drivers/dri/nouveau/nv20_state_fb.c +++ b/src/mesa/drivers/dri/nouveau/nv20_state_fb.c @@ -106,13 +106,11 @@ nv20_emit_viewport(GLcontext *ctx, int emit) struct nouveau_grobj *kelvin = context_eng3d(ctx); struct gl_framebuffer *fb = ctx->DrawBuffer; float a[4] = {}; - int i; get_viewport_translate(ctx, a); BEGIN_RING(chan, kelvin, NV20TCL_VIEWPORT_TRANSLATE_X, 4); - for (i = 0; i < 4; i++) - OUT_RINGf(chan, a[i]); + OUT_RINGp(chan, a, 4); BEGIN_RING(chan, kelvin, NV20TCL_VIEWPORT_CLIP_HORIZ(0), 1); OUT_RING(chan, (fb->Width - 1) << 16); |