freedreno: change to goto fail
in fd_resource_transfer_map, like the others error cases Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
e63fec29a1
commit
0149e7a944
|
@ -337,10 +337,8 @@ fd_resource_transfer_map(struct pipe_context *pctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = fd_bo_map(rsc->bo);
|
buf = fd_bo_map(rsc->bo);
|
||||||
if (!buf) {
|
if (!buf)
|
||||||
fd_resource_transfer_unmap(pctx, ptrans);
|
goto fail;
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
offset = slice->offset +
|
offset = slice->offset +
|
||||||
box->y / util_format_get_blockheight(format) * ptrans->stride +
|
box->y / util_format_get_blockheight(format) * ptrans->stride +
|
||||||
|
|
Loading…
Reference in New Issue