[Mesa-dev] RFC: Remove internal flushes from Mesa state tracker

José Fonseca jfonseca at vmware.com
Sun Apr 25 09:50:21 PDT 2010


Now that transfers are context operations it is the driver's
responsibility to ensure that transfers happen in order with all other
context operations, so flushes and finishes inside Mesa should be no
longer necessary. The attached patch implements that.

This should proportionate significant improvements for hardware drivers
which are able to stream transfers in the command buffers.

Nevertheless, drivers must keep their part of the bargain, and I think
that's not the case yet.

You can use the softpipe/llvmpipe_flush_resource() as reference
implementation of the worst case scenario, where the driver is not able
to streamline transfers. But the expectation is that driver
implementators will want to avoid flushing as much as possible.

Jose
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa-st-no-internal-flushes.diff
Type: text/x-patch
Size: 23793 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100425/2e441c25/attachment.bin>


More information about the mesa-dev mailing list