summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/rbug/rbug_context.c
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2018-01-16 12:57:15 +0100
committerNicolai Hähnle <nicolai.haehnle@amd.com>2018-01-16 20:15:31 +0100
commit8522949604a85bf27cce981a7f1b7f70d2292fad (patch)
tree8f3011592783bda589924fa8c266268ef09a8751 /src/gallium/drivers/rbug/rbug_context.c
parent4bf73cc6a8abb7bf5dc030ac8860e1d74e236f95 (diff)
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.
Diffstat (limited to 'src/gallium/drivers/rbug/rbug_context.c')
-rw-r--r--src/gallium/drivers/rbug/rbug_context.c5
1 files changed, 4 insertions, 1 deletions
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);