From f2d876b2b2335397661d2bd7663a7b353a1b839e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 14 Jan 2020 12:52:02 -0500 Subject: panfrost,lima: De-Galliumize tiling routines There's an implicit dependence on Gallium here that will add more complexity than needed when testing/optimizing out of driver as well as potentially Vulkanizing. We don't need a full pipe_box, just the x/y/w/h properties directly. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Vasily Khoruzhick Tested-by: Vasily Khoruzhick #lima on Mali400 Part-of: --- src/gallium/drivers/panfrost/pan_resource.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/panfrost') diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 193774e82a1..a20bd79c1ad 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -664,7 +664,7 @@ panfrost_transfer_map(struct pipe_context *pctx, panfrost_load_tiled_image( transfer->map, bo->cpu + rsrc->slices[level].offset, - box, + box->x, box->y, box->width, box->height, transfer->base.stride, rsrc->slices[level].stride, util_format_get_blocksize(resource->format)); @@ -718,7 +718,8 @@ panfrost_transfer_unmap(struct pipe_context *pctx, panfrost_store_tiled_image( bo->cpu + prsrc->slices[transfer->level].offset, trans->map, - &transfer->box, + transfer->box.x, transfer->box.y, + transfer->box.width, transfer->box.height, prsrc->slices[transfer->level].stride, transfer->stride, util_format_get_blocksize(prsrc->base.format)); -- cgit v1.2.3