diff options
author | Tim Rowley <[email protected]> | 2017-09-07 15:17:23 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-09-13 10:09:24 -0500 |
commit | 6f0fcec07a16eb48ebdafffd0b4ae0bb5ac611a4 (patch) | |
tree | 113f46f7e7eb085167982405c1984192df2e25d0 /src/gallium/drivers/swr/swr_draw.cpp | |
parent | ae2412dbbdcff6583d7e4cf0430a409b86cb9e80 (diff) |
swr/rast: Migrate memory pointers to gfxptr_t type
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_draw.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_draw.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/swr/swr_draw.cpp b/src/gallium/drivers/swr/swr_draw.cpp index 2363800f805..d7f24d6e346 100644 --- a/src/gallium/drivers/swr/swr_draw.cpp +++ b/src/gallium/drivers/swr/swr_draw.cpp @@ -295,7 +295,7 @@ swr_store_render_target(struct pipe_context *pipe, struct SWR_SURFACE_STATE *renderTarget = &pDC->renderTargets[attachment]; /* Only proceed if there's a valid surface to store to */ - if (renderTarget->pBaseAddress) { + if (renderTarget->xpBaseAddress) { swr_update_draw_context(ctx); SWR_RECT full_rect = {0, 0, @@ -322,9 +322,9 @@ swr_store_dirty_resource(struct pipe_context *pipe, swr_draw_context *pDC = &ctx->swrDC; SWR_SURFACE_STATE *renderTargets = pDC->renderTargets; for (uint32_t i = 0; i < SWR_NUM_ATTACHMENTS; i++) - if (renderTargets[i].pBaseAddress == spr->swr.pBaseAddress || - (spr->secondary.pBaseAddress && - renderTargets[i].pBaseAddress == spr->secondary.pBaseAddress)) { + if (renderTargets[i].xpBaseAddress == spr->swr.xpBaseAddress || + (spr->secondary.xpBaseAddress && + renderTargets[i].xpBaseAddress == spr->secondary.xpBaseAddress)) { swr_store_render_target(pipe, i, post_tile_state); /* Mesa thinks depth/stencil are fused, so we'll never get an |