diff options
author | Keith Whitwell <[email protected]> | 2010-11-02 17:51:34 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-11-03 09:36:01 +0000 |
commit | d4fab99c1c20334131b446b0032303a8b3c5c1a1 (patch) | |
tree | 71c00c3b48cdcd3e8439e6751ee708ccf42233a0 /src/gallium/drivers/r600/r600_resource.h | |
parent | 29c4a15bf61a76cd71ffa5b8f09706d0eab84281 (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/r600/r600_resource.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_resource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_resource.h b/src/gallium/drivers/r600/r600_resource.h index d152285815c..d24d5a102dd 100644 --- a/src/gallium/drivers/r600/r600_resource.h +++ b/src/gallium/drivers/r600/r600_resource.h @@ -35,7 +35,7 @@ struct r600_transfer { /* Buffer transfer. */ struct pipe_transfer *buffer_transfer; unsigned offset; - struct pipe_resource *linear_texture; + struct pipe_resource *staging_texture; }; /* This gets further specialized into either buffer or texture |