diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-19 17:39:09 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-05-21 14:43:32 -0400 |
commit | 48cc608859cceb523da1a5e74c0e4aad91f3984c (patch) | |
tree | c33718f601555df224ba4d393436e0f0a66c26f3 /src | |
parent | 9f2997dad061ee38e06f654f524dffbffc5b2a4b (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |