diff options
author | Eric Anholt <[email protected]> | 2018-07-11 11:11:34 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-12 11:31:08 -0700 |
commit | e48c615292aa30281dce7c49c232ad7ccfeeaaf2 (patch) | |
tree | 8bf8436d34365b676b629df6e498e8c88727a101 /src/gallium/drivers | |
parent | 97ddeed949c608742c096dadb64b7c28a56cf920 (diff) |
v3d: Fix stride of 1D_ARRAY mappings.
All of our other texture arrays will be tiled, but 1D is an array of
raster mappings and we had the wrong value plugged in here. Fixes piglit
getteximage-targets 1D_ARRAY
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c index cd49c1af52b..74d49b4d810 100644 --- a/src/gallium/drivers/v3d/v3d_resource.c +++ b/src/gallium/drivers/v3d/v3d_resource.c @@ -281,7 +281,7 @@ v3d_resource_transfer_map(struct pipe_context *pctx, return trans->map; } else { ptrans->stride = slice->stride; - ptrans->layer_stride = ptrans->stride; + ptrans->layer_stride = rsc->cube_map_stride; return buf + slice->offset + ptrans->box.y * ptrans->stride + |