freedreno: Rename internal resource_busy

So I can re-use the name fd_resource_busy.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10883>
This commit is contained in:
Rob Clark 2021-04-15 13:16:30 -07:00 committed by Marge Bot
parent 7e767ffeb3
commit a6d9a5f55a
2 changed files with 3 additions and 3 deletions

View file

@ -707,7 +707,7 @@ invalidate_resource(struct fd_resource *rsc, unsigned usage) assert_dt
bool needs_flush = pending(rsc, !!(usage & PIPE_MAP_WRITE));
unsigned op = translate_usage(usage);
if (needs_flush || fd_resource_busy(rsc, op)) {
if (needs_flush || resource_busy(rsc, op)) {
rebind_resource(rsc);
realloc_bo(rsc, fd_bo_size(rsc->bo));
} else {
@ -811,7 +811,7 @@ resource_transfer_map(struct pipe_context *pctx, struct pipe_resource *prsc,
/* If the GPU is writing to the resource, or if it is reading from the
* resource and we're trying to write to it, flush the renders.
*/
bool busy = needs_flush || fd_resource_busy(rsc, op);
bool busy = needs_flush || resource_busy(rsc, op);
/* if we need to flush/stall, see if we can make a shadow buffer
* to avoid this:

View file

@ -209,7 +209,7 @@ pending(struct fd_resource *rsc, bool write)
}
static inline bool
fd_resource_busy(struct fd_resource *rsc, unsigned op)
resource_busy(struct fd_resource *rsc, unsigned op)
{
return fd_bo_cpu_prep(rsc->bo, NULL, op | FD_BO_PREP_NOSYNC) != 0;
}