summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_transfer.h
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/auxiliary/util/u_transfer.h
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/auxiliary/util/u_transfer.h')
-rw-r--r--src/gallium/auxiliary/util/u_transfer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_transfer.h b/src/gallium/auxiliary/util/u_transfer.h
index 14084983da..9f1fcb626f 100644
--- a/src/gallium/auxiliary/util/u_transfer.h
+++ b/src/gallium/auxiliary/util/u_transfer.h
@@ -58,6 +58,7 @@ struct u_resource_vtbl {
unsigned level,
unsigned usage,
const struct pipe_box *,
+ unsigned user_stride,
struct pipe_transfer **);
@@ -90,6 +91,7 @@ void *u_transfer_map_vtbl(struct pipe_context *context,
unsigned level,
unsigned usage,
const struct pipe_box *box,
+ unsigned user_stride,
struct pipe_transfer **transfer);
void u_transfer_flush_region_vtbl( struct pipe_context *pipe,