mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
panfrost: Don't check if BO is mmaped before calling panfrost_bo_mmap()
panfrost_bo_mmap() already takes care of that. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
a06e08def9
commit
10ce751726
1 changed files with 1 additions and 5 deletions
|
|
@ -561,11 +561,7 @@ panfrost_transfer_map(struct pipe_context *pctx,
|
|||
*out_transfer = &transfer->base;
|
||||
|
||||
/* If we haven't already mmaped, now's the time */
|
||||
|
||||
if (!bo->cpu) {
|
||||
struct panfrost_screen *screen = pan_screen(pctx->screen);
|
||||
panfrost_bo_mmap(screen, bo);
|
||||
}
|
||||
panfrost_bo_mmap(pan_screen(pctx->screen), bo);
|
||||
|
||||
/* Check if we're bound for rendering and this is a read pixels. If so,
|
||||
* we need to flush */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue