From: Alyssa Rosenzweig Date: Tue, 19 May 2020 21:39:09 +0000 (-0400) Subject: panfrost: Don't zero staging buffer for tiling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48cc608859cceb523da1a5e74c0e4aad91f3984c;p=mesa.git 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: --- 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) {