From 8522949604a85bf27cce981a7f1b7f70d2292fad Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Tue, 16 Jan 2018 12:57:15 +0100 Subject: gallium: add user_stride parameter to pipe_context::transfer_map Allow callers to prescribe a desired stride for a transfer. Drivers are free to ignore this new parameter. There is no new capability because it's unclear how strict requirements on this feature should be expressed. --- src/gallium/drivers/rbug/rbug_context.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/rbug/rbug_context.c') diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c index e1f3c4f284..a03f4a79b4 100644 --- a/src/gallium/drivers/rbug/rbug_context.c +++ b/src/gallium/drivers/rbug/rbug_context.c @@ -1072,6 +1072,7 @@ rbug_context_transfer_map(struct pipe_context *_context, unsigned level, unsigned usage, const struct pipe_box *box, + unsigned user_stride, struct pipe_transfer **transfer) { struct rbug_context *rb_pipe = rbug_context(_context); @@ -1086,7 +1087,9 @@ rbug_context_transfer_map(struct pipe_context *_context, resource, level, usage, - box, &result); + box, + user_stride, + &result); mtx_unlock(&rb_pipe->call_mutex); *transfer = rbug_transfer_create(rb_pipe, rb_resource, result); -- cgit v1.2.3