diff options
author | Kenneth Graunke <[email protected]> | 2018-02-09 22:46:28 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:05 -0800 |
commit | a235da3e6865d92485e1ddbe947ea06f737027ff (patch) | |
tree | dbb847faf90f95493e137e7669f079c703bfb67b /src | |
parent | 6891f70d871238a59bec5c3cdedf78f4d5674061 (diff) |
iris: set strides on transfers
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 6773eeddf7d..93855741f84 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -389,8 +389,8 @@ iris_transfer_map(struct pipe_context *ctx, transfer->level = level; transfer->usage = usage; transfer->box = *box; - transfer->stride = 1; - transfer->layer_stride = 1; + transfer->stride = isl_surf_get_row_pitch_B(&res->surf); + transfer->layer_stride = isl_surf_get_array_pitch(&res->surf); *ptransfer = transfer; if (!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) && |