mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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 <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
This commit is contained in:
parent
9f2997dad0
commit
48cc608859
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue