panfrost: Implement command stream for linear cubemaps

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig
2019-03-28 04:33:28 +00:00
parent 70b3e5db7d
commit c87f3ce97f
2 changed files with 8 additions and 6 deletions

View File

@@ -391,7 +391,7 @@ panfrost_transfer_map(struct pipe_context *pctx,
transfer->base.usage = usage;
transfer->base.box = *box;
transfer->base.stride = bo->slices[level].stride;
transfer->base.layer_stride = bytes_per_pixel * resource->width0; /* TODO: Cubemaps */
transfer->base.layer_stride = bo->cubemap_stride;
pipe_resource_reference(&transfer->base.resource, resource);