diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2008-07-10 20:07:44 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2008-08-25 09:22:35 -0400 |
commit | 5b2e095c31b88d8495a4f86e6cb46b49fa4acd65 (patch) | |
tree | 05897e9ca9fa3647566bd05d148a29551cb099f1 /src/radeon_accel.c | |
parent | 2145309230e36aee7758bd244deb1e72ada0c065 (diff) |
Move CP into a separate struct
Diffstat (limited to 'src/radeon_accel.c')
-rw-r--r-- | src/radeon_accel.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/radeon_accel.c b/src/radeon_accel.c index e617fd5c..72866d19 100644 --- a/src/radeon_accel.c +++ b/src/radeon_accel.c @@ -624,8 +624,8 @@ drmBufPtr RADEONCPGetBuffer(ScrnInfoPtr pScrn) void RADEONCPFlushIndirect(ScrnInfoPtr pScrn, int discard) { RADEONInfoPtr info = RADEONPTR(pScrn); - drmBufPtr buffer = info->indirectBuffer; - int start = info->indirectStart; + drmBufPtr buffer = info->cp->indirectBuffer; + int start = info->cp->indirectStart; drmRadeonIndirect indirect; if (!buffer) return; @@ -645,14 +645,14 @@ void RADEONCPFlushIndirect(ScrnInfoPtr pScrn, int discard) &indirect, sizeof(drmRadeonIndirect)); if (discard) { - info->indirectBuffer = RADEONCPGetBuffer(pScrn); - info->indirectStart = 0; + info->cp->indirectBuffer = RADEONCPGetBuffer(pScrn); + info->cp->indirectStart = 0; } else { /* Start on a double word boundary */ - info->indirectStart = buffer->used = (buffer->used + 7) & ~7; + info->cp->indirectStart = buffer->used = (buffer->used + 7) & ~7; if (RADEON_VERBOSE) { xf86DrvMsg(pScrn->scrnIndex, X_INFO, " Starting at %d\n", - info->indirectStart); + info->cp->indirectStart); } } } @@ -661,12 +661,12 @@ void RADEONCPFlushIndirect(ScrnInfoPtr pScrn, int discard) void RADEONCPReleaseIndirect(ScrnInfoPtr pScrn) { RADEONInfoPtr info = RADEONPTR(pScrn); - drmBufPtr buffer = info->indirectBuffer; - int start = info->indirectStart; + drmBufPtr buffer = info->cp->indirectBuffer; + int start = info->cp->indirectStart; drmRadeonIndirect indirect; - info->indirectBuffer = NULL; - info->indirectStart = 0; + info->cp->indirectBuffer = NULL; + info->cp->indirectStart = 0; if (!buffer) return; |