mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
freedreno: handle PIPE_TRANSFER_MAP_DIRECTLY
Just something I noticed in the process of debugging the issue fixed in the previous commit. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5188>
This commit is contained in:
parent
8728c42031
commit
3024d00900
1 changed files with 5 additions and 0 deletions
|
|
@ -569,6 +569,11 @@ fd_resource_transfer_map(struct pipe_context *pctx,
|
|||
DBG("prsc=%p, level=%u, usage=%x, box=%dx%d+%d,%d", prsc, level, usage,
|
||||
box->width, box->height, box->x, box->y);
|
||||
|
||||
if ((usage & PIPE_TRANSFER_MAP_DIRECTLY) && rsc->layout.tile_mode) {
|
||||
DBG("CANNOT MAP DIRECTLY!\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ptrans = slab_alloc(&ctx->transfer_pool);
|
||||
if (!ptrans)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue