On Wed, Apr 18, 2012 at 5:06 PM, Jose Fonseca <jfons...@vmware.com> wrote:
> Marek,
>
> Sorry for not noticing earlier ( I haven't been able to keep up with mesa 
> traffic lately), but I'm afraid this and the 10/10 are not ok, as on several 
> operating systems, namely, Windows WDDM, it is illegal to flush a command 
> buffer with a buffer mapped.

The buffer is not mapped when the flush happens. u_blit uses
pipe_buffer_write_nooverlap, which uses transfer_inline_write, which
goes into u_default_transfer_inline_write on most (if not all)
drivers, which unmaps the resource before the function returns.

The buffer may be mapped with the 'unsynchronized' flag again later
though, so drivers should implement that flag to avoid stalls.

Marek
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to