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_state.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_state.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_state.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index 69a447334fe..1491868eaeb 100644 --- a/src/gallium/drivers/swr/swr_state.cpp +++ b/src/gallium/drivers/swr/swr_state.cpp @@ -795,7 +795,7 @@ swr_update_texture_state(struct swr_context *ctx, jit_tex->width = res->width0; jit_tex->height = res->height0; - jit_tex->base_ptr = swr->pBaseAddress; + jit_tex->base_ptr = (uint8_t*)swr->xpBaseAddress; if (view->target != PIPE_BUFFER) { jit_tex->first_level = view->u.tex.first_level; jit_tex->last_level = view->u.tex.last_level; @@ -902,7 +902,7 @@ swr_change_rt(struct swr_context *ctx, struct SWR_SURFACE_STATE *rt = &pDC->renderTargets[attachment]; /* Do nothing if the render target hasn't changed */ - if ((!sf || !sf->texture) && rt->pBaseAddress == nullptr) + if ((!sf || !sf->texture) && (void*)(rt->xpBaseAddress) == nullptr) return false; /* Deal with disabling RT up front */ @@ -918,12 +918,12 @@ swr_change_rt(struct swr_context *ctx, const SWR_SURFACE_STATE *swr_surface = &swr->swr; SWR_FORMAT fmt = mesa_to_swr_format(sf->format); - if (attachment == SWR_ATTACHMENT_STENCIL && swr->secondary.pBaseAddress) { + if (attachment == SWR_ATTACHMENT_STENCIL && swr->secondary.xpBaseAddress) { swr_surface = &swr->secondary; fmt = swr_surface->format; } - if (rt->pBaseAddress == swr_surface->pBaseAddress && + if (rt->xpBaseAddress == swr_surface->xpBaseAddress && rt->format == fmt && rt->lod == sf->u.tex.level && rt->arrayIndex == sf->u.tex.first_layer) @@ -932,7 +932,7 @@ swr_change_rt(struct swr_context *ctx, bool need_fence = false; /* StoreTile for changed target */ - if (rt->pBaseAddress) { + if (rt->xpBaseAddress) { /* If changing attachment to a new target, mark tiles as * INVALID so they are reloaded from surface. */ swr_store_render_target(&ctx->pipe, attachment, SWR_TILE_INVALID); |