From b9c8a98e216f4613dc0a40e26d08f2c1cb760e76 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Mon, 7 Jan 2013 22:12:28 +0100 Subject: [PATCH] nvc0: use correct resource target to select blit shader --- src/gallium/drivers/nvc0/nvc0_surface.c | 4 ++-- 1 file 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]; -- 2.30.2