diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2018-01-16 12:57:15 +0100 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2018-01-16 20:15:31 +0100 |
commit | 8522949604a85bf27cce981a7f1b7f70d2292fad (patch) | |
tree | 8f3011592783bda589924fa8c266268ef09a8751 /src/gallium/drivers/virgl | |
parent | 4bf73cc6a8abb7bf5dc030ac8860e1d74e236f95 (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/virgl')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_buffer.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/virgl/virgl_texture.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_buffer.c b/src/gallium/drivers/virgl/virgl_buffer.c index 2e63aebc72..d6af398b10 100644 --- a/src/gallium/drivers/virgl/virgl_buffer.c +++ b/src/gallium/drivers/virgl/virgl_buffer.c @@ -43,6 +43,7 @@ static void *virgl_buffer_transfer_map(struct pipe_context *ctx, unsigned level, unsigned usage, const struct pipe_box *box, + unsigned user_stride, struct pipe_transfer **transfer) { struct virgl_context *vctx = virgl_context(ctx); diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c index 150a5ebd8c..903418f97a 100644 --- a/src/gallium/drivers/virgl/virgl_texture.c +++ b/src/gallium/drivers/virgl/virgl_texture.c @@ -124,6 +124,7 @@ static void *virgl_texture_transfer_map(struct pipe_context *ctx, unsigned level, unsigned usage, const struct pipe_box *box, + unsigned user_stride, struct pipe_transfer **transfer) { struct virgl_context *vctx = virgl_context(ctx); |