On Thu, 2009-02-19 at 23:58 -0800, Ben Skeggs wrote:
> Module: Mesa
> Branch: master
> Commit: 63a3a3762c8e1a67666d36b35fdb0ada8e4b7d08
> URL:
> http://cgit.freedesktop.org/mesa/mesa/commit/?id=63a3a3762c8e1a67666d36b35fdb0ada8e4b7d08
>
> Author: Ben Skeggs <[email protected]>
> Date: Fri Feb 20 09:32:47 2009 +1000
>
> nv50: rework for texture_transfer changes
Thanks for this, and sorry for any inconvenience the transfer changes
may have caused.
> +static void
> +nv50_transfer_unmap(struct pipe_screen *pscreen, struct pipe_transfer *ptx)
> +{
> + struct nv50_transfer *tx = (struct nv50_transfer *)ptx;
> + struct nv50_miptree *mt = nv50_miptree(ptx->texture);
> +
> + if (ptx->usage != PIPE_TRANSFER_READ) {
> + nv50_transfer_rect_m2mf(pscreen, tx->buffer, tx->base.stride,
> + 0, 0, tx->base.width, tx->base.height,
> + mt->buffer, tx->level_pitch,
> + tx->level_x, tx->level_y,
> + tx->level_width, tx->level_height,
> + tx->base.block.size, tx->base.width,
> + tx->base.height, NOUVEAU_BO_GART,
> + NOUVEAU_BO_VRAM | NOUVEAU_BO_GART);
> + }
> +
> + pipe_buffer_unmap(pscreen, mt->buffer);
> +}
BTW, you may want to defer the upload to transfer destruction time, in
case the state tracker were to map/unmap the transfer several times.
--
Earthling Michel Dänzer | http://www.vmware.com
Libre software enthusiast | Debian, X and DRI developer
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev