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;
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];