if(ns->backing)
{
struct nvfx_screen* screen = (struct nvfx_screen*)ps->texture->screen;
- if(ns->backing->base.usage & PIPE_BIND_RENDER_TARGET)
+ if(ns->backing->base.usage & PIPE_BIND_BLIT_DESTINATION)
screen->eng2d->copy(screen->eng2d, &ns->backing->base, 0, 0, ps, 0, 0, ns->base.width, ns->base.height);
nvfx_miptree_surface_del(&ns->backing->base);
}
unsigned bind = 0;
if (transfer_usage & PIPE_TRANSFER_WRITE)
- bind |= PIPE_BIND_BLIT_DESTINATION;
+ bind |= PIPE_BIND_BLIT_SOURCE;
if (transfer_usage & PIPE_TRANSFER_READ)
- bind |= PIPE_BIND_BLIT_SOURCE;
+ bind |= PIPE_BIND_BLIT_DESTINATION;
return bind;
}