diff options
author | Christoph Bumiller <[email protected]> | 2013-01-07 22:12:28 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-01-08 16:13:52 +0100 |
commit | b9c8a98e216f4613dc0a40e26d08f2c1cb760e76 (patch) | |
tree | 0b3fa453b3c36c9090f4bc4ef7a2e0bf4a3a7e4c | |
parent | 41e105d5beb78c42993a602cc58d0f990739b088 (diff) |
nvc0: use correct resource target to select blit shader
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_surface.c b/src/gallium/drivers/nvc0/nvc0_surface.c index 2f81cf5c61e..591f67c07dc 100644 --- a/src/gallium/drivers/nvc0/nvc0_surface.c +++ b/src/gallium/drivers/nvc0/nvc0_surface.c @@ -544,7 +544,7 @@ nvc0_blit_select_fp(struct nvc0_blitctx *ctx, const struct pipe_blit_info *info) struct nvc0_blitter *blitter = ctx->nvc0->screen->blitter; const enum pipe_texture_target ptarg = - nv50_blit_reinterpret_pipe_texture_target(info->dst.resource->target); + nv50_blit_reinterpret_pipe_texture_target(info->src.resource->target); const unsigned targ = nv50_blit_texture_type(ptarg); const unsigned mode = ctx->mode; @@ -553,7 +553,7 @@ nvc0_blit_select_fp(struct nvc0_blitctx *ctx, const struct pipe_blit_info *info) pipe_mutex_lock(blitter->mutex); if (!blitter->fp[targ][mode]) blitter->fp[targ][mode] = - nv50_blitter_make_fp(&ctx->nvc0->base.pipe, mode, targ); + nv50_blitter_make_fp(&ctx->nvc0->base.pipe, mode, ptarg); pipe_mutex_unlock(blitter->mutex); } ctx->fp = blitter->fp[targ][mode]; |