[Mesa-dev] [RFC][PATCH] Add usage for resources that have a short lifes cycle

Jakob Bornecrantz wallbraker at gmail.com
Sat Mar 5 08:54:15 PST 2011


Hi all

Short and simple patch series attached.

Some drivers can treat one shot resources differently then resources
that are expected to be used several times. Add a usage flag to allow
the state tracker to mark such resources.

The motivation behind this is to identify the glBitmap cache textures
so that the i915g driver can make them not tiled and upload the texture
data with pwrites, which is faster then mapping them via the GTT which is
needed when they tiled.

Comments please?

Cheers Jakob.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gallium-Add-usage-for-resources-that-have-a-short-li.patch
Type: text/x-patch
Size: 1155 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110305/45af3911/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-st-mesa-Route-texture-usage-from-bitmap-down-into-th.patch
Type: text/x-patch
Size: 6641 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110305/45af3911/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-i915g-Don-t-use-tiling-and-upload-via-buffer-write-f.patch
Type: text/x-patch
Size: 3688 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110305/45af3911/attachment-0005.bin>


More information about the mesa-dev mailing list