summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvc0/nvc0_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_surface.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_surface.c4
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];