From 48cc608859cceb523da1a5e74c0e4aad91f3984c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 19 May 2020 17:39:09 -0400 Subject: [PATCH] panfrost: Don't zero staging buffer for tiling It's a little less safe but the memset does take time during initialization. v3d doesn't either, so I think it's ok. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 9443f93e666..3e68cbdbef4 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -652,7 +652,7 @@ panfrost_transfer_map(struct pipe_context *pctx, transfer->base.stride = box->width * bytes_per_pixel; transfer->base.layer_stride = transfer->base.stride * box->height; - transfer->map = rzalloc_size(transfer, transfer->base.layer_stride * box->depth); + transfer->map = ralloc_size(transfer, transfer->base.layer_stride * box->depth); assert(box->depth == 1); if ((usage & PIPE_TRANSFER_READ) && rsrc->slices[level].initialized) { -- 2.30.2