Commit 0b5a311d authored by Keith Whitwell's avatar Keith Whitwell

gallium: add more of the transfer state to pipe_transfer

Not really sure if recording all the arguments to the
create_{transfer,texture,surface,etc} functions in the result of those
calls is a great idea, but it seems we're fairly dependent on it
throughout the code.
parent a23985c2
......@@ -321,20 +321,6 @@ struct pipe_box
/**
* Transfer object. For data transfer to/from a texture.
*/
struct pipe_transfer
{
struct pipe_resource *resource; /**< resource to transfer to/from */
struct pipe_box box;
enum pipe_transfer_usage usage;
unsigned stride;
unsigned slice_stride;
void *data;
};
struct pipe_resource
{
struct pipe_reference reference;
......@@ -360,6 +346,22 @@ struct pipe_subresource
};
/**
* Transfer object. For data transfer to/from a texture.
*/
struct pipe_transfer
{
struct pipe_resource *resource; /**< resource to transfer to/from */
struct pipe_subresource sr;
enum pipe_transfer_usage usage;
struct pipe_box box;
unsigned stride;
unsigned slice_stride;
void *data;
};
/**
* A vertex buffer. Typically, all the vertex data/attributes for
* drawing something will be in one buffer. But it's also possible, for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment