diff options
author | Rob Clark <[email protected]> | 2014-10-15 10:29:17 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-10-15 15:49:48 -0400 |
commit | dd332fe6414366b22a9d9ffce0fded51bc5b71a4 (patch) | |
tree | c911ab858de8a9d1ce469cb5b5de8adb27a4bdf1 /src/gallium/drivers | |
parent | 8233b36a172820edf18ea4612f1979dc6089a1d7 (diff) |
freedreno: fix layer_stride
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 6391dd10fc9..b6b39f00db0 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -116,7 +116,7 @@ fd_resource_transfer_map(struct pipe_context *pctx, ptrans->usage = usage; ptrans->box = *box; ptrans->stride = slice->pitch * rsc->cpp; - ptrans->layer_stride = ptrans->stride; + ptrans->layer_stride = slice->size0; if (usage & PIPE_TRANSFER_READ) op |= DRM_FREEDRENO_PREP_READ; |