On Thu, Mar 5, 2009 at 1:19 PM, Michel Dänzer <[email protected]> wrote: > On Wed, 2009-03-04 at 15:53 -0800, Corbin Simpson wrote: >> Module: Mesa >> Branch: master >> Commit: 04ae9c3fdd62831485b7384da62566a0b82b84af >> URL: >> http://cgit.freedesktop.org/mesa/mesa/commit/?id=04ae9c3fdd62831485b7384da62566a0b82b84af >> >> Author: Corbin Simpson <[email protected]> >> Date: Wed Mar 4 13:47:44 2009 -0800 >> >> r300-gallium: Add unaccelerated surface_copy. > > [...] > >> + if (TRUE) { >> + debug_printf("r300: Falling back on surface_copy\n"); >> + return util_surface_copy(pipe, do_flip, dest, destx, desty, src, >> + srcx, srcy, w, h); >> + } > > Have you tried using util_blit_pixels_tex()? I think that'd probably be > as good as it's gonna get at least for cards without a 2D engine...
He can't use that he is in the pipe driver, since it doesn't know about the cso context. And if it did there is no guarantee its safe to use the save/restore functions because you don't know if the st has used the cso save funcs before calling surface_copy (or for that matter any other function that might want to use the cso in the pipe driver). Cheers Jakob. ------------------------------------------------------------------------------ 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
