r600g: use a buffer in GTT as intermediate on texture up and downloads
authorKeith Whitwell <keithw@vmware.com>
Tue, 2 Nov 2010 17:51:34 +0000 (17:51 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 3 Nov 2010 09:36:01 +0000 (09:36 +0000)
commitd4fab99c1c20334131b446b0032303a8b3c5c1a1
tree71c00c3b48cdcd3e8439e6751ee708ccf42233a0
parent29c4a15bf61a76cd71ffa5b8f09706d0eab84281
r600g: use a buffer in GTT as intermediate on texture up and downloads

Generalize the existing tiled_buffer path in texture transfers for use
in some non-tiled up and downloads.

Use a staging buffer, which the winsys will restrict to GTT memory.

GTT buffers have the major advantage when they are mapped, they are
cachable, which is a very nice property for downloads, usually the CPU
will want to do look at the data it downloaded.
src/gallium/drivers/r600/r600_resource.h
src/gallium/drivers/r600/r600_texture.c