summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2019-07-13 18:06:42 -0700
committerKevin Brace <kevinbrace@gmx.com>2019-07-13 18:06:42 -0700
commitbc59e9d626fc22a8255b71ff71c840fb553547fb (patch)
treef8afb11b1524edb2dd83104087d4069fc1745fe7 /src
parent8b1ffce645c4bf4065009c9c6b95767bb2dace48 (diff)
Call RING_VARS macro at the beginning of viaExaCopy_H2()
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'src')
-rw-r--r--src/via_exa_h2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/via_exa_h2.c b/src/via_exa_h2.c
index 1b91bb2..0fd6498 100644
--- a/src/via_exa_h2.c
+++ b/src/via_exa_h2.c
@@ -237,6 +237,8 @@ viaExaCopy_H2(PixmapPtr pDstPixmap, int srcX, int srcY, int dstX, int dstY,
VIAPtr pVia = VIAPTR(pScrn);
ViaTwodContext *tdc = &pVia->td;
+ RING_VARS;
+
if (!width || !height)
return;
@@ -251,8 +253,6 @@ viaExaCopy_H2(PixmapPtr pDstPixmap, int srcX, int srcY, int dstX, int dstY,
}
val = VIA_PITCH_ENABLE | (dstPitch >> 3) << 16 | (tdc->srcPitch >> 3);
- RING_VARS;
-
BEGIN_RING(16);
OUT_RING_H1(VIA_REG_GEMODE, tdc->mode);
OUT_RING_H1(VIA_REG_SRCBASE, tdc->srcOffset >> 3);